Error: Expression must have integral or unscoped enum type

  • Thread starter Thread starter Brown12345
  • Start date Start date
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...
 
Back
Top