for some reason it skips the input line for first name. i have tried using cin.getline(fname, 20, '\n') and cin.ignore() but niether fix the problem.thanks for any help
Code:int student::getID() { cout<<"STUDENT ID: "; cin>>id; return 0; } char student::getNAME() { cout<<"FIRST NAME: "; cin>>fname; cout<<endl<<"MIDDLE NAME: "; cin>>mname; cout<<endl<<"LAST NAME: "; cin>>lname; strupr(fname); strupr(mname); strupr(lname); return 0; }



LinkBack URL
About LinkBacks
thanks for any help



...ok now here is the out put after it clears the screen:
CornedBee