Advertisement
Guest User

main

a guest
Mar 18th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #include <stdio.h>
  2. #include "sportsman.h"
  3. #include "functions.h"
  4. #include "menu.h"
  5.  
  6. int main()
  7. {
  8. File *file;
  9. printf("Ââåäèòå íàçâàíèå ôàéëà");
  10. char fileName[];
  11. gets(fileName);
  12. while ((file = fopen(fileName, "w+")) == NULL)
  13. {
  14. printf("Íå ïîëó÷èëîñü îòêðûòü ôàéë. Ïîïðîáóéòå åù¸ ðàç");
  15. gets(fileName);
  16. }
  17. char userInput;
  18. sportsman array[10000];
  19. int num = 0;
  20. do
  21. {
  22. LaunchMenu();
  23. printf("Íàæìèòå 0 äëÿ çàêðûòèÿ ïðîãðàììû");
  24. scanf("%c", userInput);
  25. } while(userInput != '0');
  26. fclose(file);
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement