QUOTE(help-linux @ 29 Aug, 2006 - 10:58 AM)

this should work:
CODE
int Load_Student_Table(STUDENT_STRUCT student_table[], int num_students)
{
int row=0;
int response=1;
cout << endl;
cout << "Enter the table values as you are prompted:"
<< endl << endl;
while(response==1)
{
cout << endl << endl;
cout << "For row #" << row+1 << " enter:" << endl << endl;
cout << endl << "Last Name: ";
cin.getline(student_table[row].last_name, 31);
cout << endl << "First Name: ";
cin.getline(student_table[row].first_name, 31);
cout << "Social Security Number: ";
cin.getline(student_table[row].soc_sec_no, 10);
cout << "Phone Number: ";
cin.getline(student_table[row].ph_no, 11);
cout << "Quiz 1: ";
cin >> student_table[row].quiz_1;
cout << "Quiz 2: ";
cin >> student_table[row].quiz_2;
cout << "Quiz 3: ";
cin >> student_table[row].quiz_3;
cout << "Quiz 4: ";
cin >> student_table[row].quiz_4;
cout << "Quiz 5: ";
cin >> student_table[row].quiz_5;
cout << "Final Exam: ";
cin >> student_table[row].final_exam;
row++;
cout<<"Do you wish to enter another student? Enter 1 for yes or 0 for no: "<<endl;
cin>>response;
}
return row;
}
Thanks. I did that but now, it displays like this:
Last Name:
First Name: This is how I want it displayed, but it puts the cursor after First Name and doesn't allow me to enter the Last Name.