Code:
#include <iostream>
#include <fstream>
using namespace std;
int main () {
ifstream fin;
fin.open ("Marks.txt");
string n;
double m;
cout << "Number of students: " << numStuds;
fin.close();
return 0;
}
so, basically im trying to read the datas that are in the file, and then put it on the the arrays, and output how many datas there are..
if the datas are like this :
james 89
doni 80
ben 87
but, when i output it, the number of students stays 0. why is that?