Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "stdafx.h"
- #pragma warning(disable:4996)
- #define MENU "Please select the operation:\n\t0. Exit.\n\t1. " \
- "Insert or update student grades.\n\t2. Delete student" \
- "information.\n\t3. Print the student with maximal computed" \
- "grade.\n\t4. Print all the students with their computed grades.\n\t5. Print the menu.\n"
- #define LINE_CAP 200
- int UpdateStudentList() {
- return 0;
- }
- int RemoveStudent() {
- return 0;
- }
- void FindTheGeek() {
- }
- void PrintEmAll() {
- }
- int main()
- {
- int operation;
- char student[51][41][11];
- char tempArray[202];
- printf(MENU);
- scanf("%d", &operation);
- while (operation != 0) {
- switch (operation)
- {
- case 1:
- fgets(tempArray , LINE_CAP, stdin);
- UpdateStudentList()
- break;
- case 2:
- break;
- case 3:
- break;
- case 4:
- break;
- case 5:
- printf(MENU);
- break;
- default:
- printf("Error: unrecognized operation.\n");
- break;
- }
- if ((operation==1)||(operation==2)||(operation==3)||(operation==4)) {
- printf("Select the next operation (insert 5 for complete menu).\n%");
- }
- scanf("%d", &operation);
- }
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement