Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "sportsman.h"
- #include "functions.h"
- #include "menu.h"
- int main()
- {
- File *file;
- printf("Ââåäèòå íàçâàíèå ôàéëà");
- char fileName[];
- gets(fileName);
- while ((file = fopen(fileName, "w+")) == NULL)
- {
- printf("Íå ïîëó÷èëîñü îòêðûòü ôàéë. Ïîïðîáóéòå åù¸ ðàç");
- gets(fileName);
- }
- char userInput;
- sportsman array[10000];
- int num = 0;
- do
- {
- LaunchMenu();
- printf("Íàæìèòå 0 äëÿ çàêðûòèÿ ïðîãðàììû");
- scanf("%c", userInput);
- } while(userInput != '0');
- fclose(file);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement