Hello I am a newbie on C++. And I wish to know what is casing problem in the following code.
int MAX = 15;
while (!inputfile.eof()){
    getline(inputfile, name);
    cout << name << endl;
    for (int i = 0; i < MAX; i ++){
        inputfile >> questionnumber >> answer;
        cout << questionnumber << "  " << answer << "\n";
    }
    //inputfile.ignore(); #This will ignore the Enter key in Buffer zone
    //inputfile.sync(); #But how come this can't clean the Enter key in Buffer zone?
}
the datas inside inputfile are
key
 2 B
13 D
 3 C
 5 D
14 C
 6 C
 8 A
15 B
 9 A
 1 A
 7 B
10 B
11 C
 4 D
12 D
 0 James
Sorry for my poor English and I don't know how to describe this kind of problems.
Thanks.
