Upload files to "/"
This commit is contained in:
@@ -104,7 +104,7 @@ void menu() {
|
||||
cout << "4. Query student\n";
|
||||
cout << "5. Display all students\n";
|
||||
cout << "0. Exit\n";
|
||||
cout << "Please select<EFBFBD><EFBFBD>";
|
||||
cout << "Please select: ";
|
||||
}
|
||||
|
||||
int main() {
|
||||
@@ -119,14 +119,14 @@ int main() {
|
||||
|
||||
switch (choice) {
|
||||
case 1:
|
||||
cout << "Student ID - Name - Age<EFBFBD><EFBFBD>";
|
||||
cout << "Student ID - Name - Age: ";
|
||||
cin >> id >> name >> age;
|
||||
addStudent(id, name, age);
|
||||
cout << "Added successfully.\n";
|
||||
break;
|
||||
|
||||
case 2:
|
||||
cout << "Input student ID to delete<EFBFBD><EFBFBD>";
|
||||
cout << "Input student ID to delete: ";
|
||||
cin >> id;
|
||||
if (deleteStudent(id))
|
||||
cout << "Deleted.\n";
|
||||
@@ -135,7 +135,7 @@ int main() {
|
||||
break;
|
||||
|
||||
case 3:
|
||||
cout << "Enter new Student ID - Name - Age<EFBFBD><EFBFBD>";
|
||||
cout << "Enter new Student ID - Name - Age: ";
|
||||
cin >> id >> name >> age;
|
||||
if (updateStudent(id, name, age))
|
||||
cout << "Modified successfully.\n";
|
||||
|
||||
Reference in New Issue
Block a user