OKay here's the program Im suppose to write.. it involves looping and branching(I think)
******************************************
************************************Code:#include <iostream> int main() { using namespace std; string fullname,Student_No,Phone; int option; char Sex; int Age; cout << "1)... Add Student Information" << endl; cout << "2)... View Last Students Information" << endl; cout << "3)... Quit" << endl; cin >> option; if (option == 1) { cout << "Name:" << endl; cin >>fullname; cout << "Sex" << endl; cin >>Sex; cout << "Please enter age of Student:" << endl; cin >>Age; cout << "Please enter the Student's Number:" << endl; cin >>Student_No; cout << "Please enter the Students phone number"<< endl; cin >>Phone; } if (option == 2) {} return 0; }
WHat I need help with is:
You see option 2.. what do I type in, in order to view the last student info
AND
when entering option 3..how do I quit the program.... I am sorry If my english isnt the best..
MANY MANY thanks in advance to anyone that can help me![]()



LinkBack URL
About LinkBacks
)





