Stuprog
Stuprog
Stuprog
struct Student {
char name[NAME_LENGTH];
int age;
char department[DEPARTMENT_LENGTH];
char studentID[NAME_LENGTH];
char address[NAME_LENGTH];
};
int main() {
Student students[MAX_STUDENTS];
int count = 0;
int choice;
do {
// Display menu options for the user
cout << "Student Management System\n";
cout << "1. Add new student\n";
cout << "2. Update student information\n";
cout << "3. Arrange students by age\n";
cout << "4. Count students by department\n";
cout << "5. Display all students\n";
cout << "0. Exit\n";
cout << "Enter your choice: ";
cin >> choice;
return 0;
}