why is this loop not working?
Code:cout << "\nEnter first student?\nEnter Y or N\n"; cin.getline(response, 8); cin.ignore(80, '\n'); while (toupper(*response) == 'Y') { for(row=0;row<TABLE_SIZE;++row) { while (toupper(*response) == 'Y') { user_prompt(main_struct[row]); cout << "Enter another student?\nEnter Y or N\n\n"; cin.getline(response, 8); cin.ignore(80, '\n'); cout << *(main_struct[1]).phone; } } }



LinkBack URL
About LinkBacks


