B
Brown12345
Guest
int loop;
int num;
FILE *infile = fopen(inputFile, "r");
if (infile != NULL) {
infile >> num;
data[loop] = num;
std::cout << data[loop] << std::endl;
}
I get this error for infile>>num. Why is that so?
Continue reading...
int num;
FILE *infile = fopen(inputFile, "r");
if (infile != NULL) {
infile >> num;
data[loop] = num;
std::cout << data[loop] << std::endl;
}
I get this error for infile>>num. Why is that so?
Continue reading...