im struggling to get findfirst to work in C++ i am using Microsoft Visual C++. Trying to fing all gifs in a directory. I found this following code is the general way of achieving this....
...
Type: Posts; User: Flip
im struggling to get findfirst to work in C++ i am using Microsoft Visual C++. Trying to fing all gifs in a directory. I found this following code is the general way of achieving this....
...
no im 18 and finished education last year....this is purely just trying to learn C++ by setting myself little projects. this is just a small function of wat i need to do i have already written all my...
#include <fstream>
#include <iostream>
using namespace std;
int main () {
char buffer[];
int size;
ifstream file_in ("new.txt",ios::in);
yeah i got the psuedo...im just struggling with the actual program
im quite confident reading and writing to files but i was wandering how it would be possible to lift records from one file and put it into another file
for example two text files and i want to...
aaah yes lol that would explain alot.....thats the narrowed down version of wat im doing and may explain the rest of the weird behaviour!
thank you!
why does my second loop (for a....) not return pupil[0] it will only start from pupil[1]
#include <iostream>
#include <string>
using namespace std;
int main(){
char *pupil[10]= {
ok thank you i've done this soo far....
int check_string(string x1){
unsigned int pos = x1.find(".",0);
int y = 0;
if(pos != string::npos){
cout << "Invalid input! Conversion...
Thank you i did a bit of thinking and got everything solved! no im just trying to learn C++ and decided to set myself a task of using the remainder method for number conversion.
Is it possible to check to see if a user has used a floating point number as of an integer?
oh and yes i have comiled with C++ before im just strugglin to get used to the environment and the debugging
in the VB code the last loop takes the last character of the string and places it...
I think wat im really aiming for is to add an integer onto the end of a string
like....
suppose (psuedo code)
x is an integer
rslt is a string
Ok i've tried using your suggested solution..which looks good....although i cannot compile it due to the following erros:
here is the code
#include <iostream>
#include <string>
#include...
Ok im kinda new to C++
How can i increment a string by adding an integer value onto the end?
i am converting a decimal number to binary using the remainder method
in other words divide x by 2...