I'm a huge noob at programming.. but I'm suppose to be making a program that creates an array of structures... each structure contains the id, first name, last name, major, and gpa of a student... and my program is suppose to be able to sort by last name and display, sort by id and display, search for a specific structure by last name, and search for a specific structure by id...
this is what I have so far.... but I don't really know where to go from here.. I should probably work on finding a way to sort the structures by name and id.. but I don't really know where to start..
can anyone help?
Code:int x=0; while(x =! 5) { cout << "Enter a number from the list to choose an option"; cout << "1. List the students sorted by last name"; cout << "2. List the students sorted by student id"; cout << "3. Search the students by last name"; cout << "4. Search the students by student id"; cout << "5. Quit the program"; cin >> x; if (x=1) ; else if (x=2) ; else if (x=3) ; else if (x=4) ; } exit(1);



LinkBack URL
About LinkBacks


