Console Menu Version 1.0

Language

A simple console menu program I wrote in C++ that has an error trapping features to ensure that the user will select the valid options from the menu. If you have some questions about my work please send me an email at [email protected]. People here in the Philippines can reach me in my mobile phone number 09296768375 and 09326639972. My telephone number at home +63 (034) 4335081. Be one of my friends in facebook you can add me my address [email protected]. I am also accepting programming jobs like assignments, projects and thesis in a very reasonable and affordable price. Thank you very much and God Bless. Regards, Mr. Jake Rodriguez Pomperada, MAED - Instructional Technology Programmer, Teacher, Computer Technician and Electronics Technician

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byAnonymous (not verified)on Sat, 10/23/2010 - 12:23

Plz Help me
Submitted bydennisqewqeq (not verified)on Tue, 03/20/2012 - 17:28

t asks us to make a program (using files) that would let a person enter student deatils as follows: 1 > Add student Details 2 > View a student detail 3 > Edit a student's details 4 > Delete a student record 5 > Display all students' grades 6 > Display all students' marks 7 > Display class average and standard deviation 8 > Save a student detail to a file 9 > Exit I've decided to try to do this problem, step by step (otherwise I get confused), and so I started out with let's say the user picking option 1, to enter student details. Here is my code thusfar. ___________________________________________________________ #include #include #include #include using namespace std; int main () { int user_input_number; double student_id; string last_name; string first_name; int counter; int number_of_students; ofstream student_name("information.dat"); cout Add student Details" View a student detail" Edit a student's details" Delete a student record" Display all students' grades" Display all students' marks" Display class average and standard deviation" Save a student detail to a file" Exit" > user_input_number; if (user_input_number == 1) { cout > number_of_students; cout "; getline (cin, last_name); student_name "; getline (cin, first_name); student_name Enter student first name ==> Enter student last name ==> (i can give input here) Enter student first name ==> (i can give input here) Enter student last name ==> (i can give input here) Enter student first name ==> (i can give input here) I wanted to ask, why does it initially repeat this line without any prompt of input? "Enter student last name ==> Enter student first name ==>" How can I fix it? What would also be a good efficient way for me to finish the rest of my program? Should I use files or should I use arrays and loops instead? Any tips? Sample program? Ofcourse I don't expect you to write it all for me, I just need a 'kick start' just send it to my email tnx :[email protected]

Add new comment