cout << "please enter the data file name (with location) : ";
cin >> strFileName;
//call a funtion to read the content of the input file into vector : vecstudent
while (true)
{
cout<<"--------------------------------------------" <<endl;
cout<<" Student Record - Main Menu" << endl;
cout<<"--------------------------------------------" <<endl;
cout<<" Enter 1 to display ALL students"<<endl;
cout<<" Enter 2 to add a student name"<<endl;
cout<<" Enter 3 to delete a student name"<<endl;
cout<<" Enter 4 to save and quit the program"<<endl;
cout<<"--------------------------------------------" << endl;
cout<<" Enter Menu Option: ";
cin>> cInput;
switch (cInput)
{
case '1' :
cout << "--------------------------------------------" << endl
cout << "Display ALL student Names.."<< endl; //call a function to handle this option
break;
case '2' :
cout << "--------------------------------------------" << endl;
cout << "Enter a new name(first and last): " << endl;
//call a function to handle this option
break;
case '3':
cout << "--------------------------------------------" << endl;
cout << "Enter a Name to be deleted ( First and last): " << endl;
//call a function to handle this option
break;
case '4' :
cout << "--------------------------------------------" << endl
cout << "Thanks for useing the program. Program Terminated" << endl;
//call a function to handle this option
return 0;
default:
cout<<"invalid input" <<endl;
break;
}
}
return 0;
}
were i have put // thats what i need to add for the program will work, i have no idea what im doin with c++ id just like to pass the intro course and be done with computers at university...can anyone help out?