Header.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #pragma once
  2. #define _CRT_SECURE_NO_WARNINGS
  3. #include <stdio.h>
  4. #include <math.h>
  5. #include<Windows.h>
  6. #define PATH "task1.txt"
  7. #define PATH_ANSWER "answer.txt"
  8. #define PATH2 "task2.txt"
  9. #define ANSWERTASK2 "answer2.txt"
  10. /// <summary>
  11. /// Çàïèñûâàåò â ôàéë ñ ïóòåì path ñòðîêó answer
  12. /// </summary>
  13. /// <param name="path">Ïóòü ê ôàéëó</param>
  14. /// <param name="answer">Ñòðîêà äëÿ çàïèñè â ôàéë</param>
  15. void writeFile(char* path, char* answer);
  16. /// <summary>
  17. /// Ôóíêöèÿ äëÿ íàõîæäåíèÿ ðåøåíèÿ êâàäðàòíîãî óðàâíåíèÿ ñðåäñòâàìè ÿçûêà ïðîãðàììèðîâàíèÿ ÑÈ
  18. /// </summary>
  19. void withC();
  20. /// <summary>
  21. /// Ñîçäàåò íîâûé ôàéë
  22. /// </summary>
  23. /// <param name="path">Ïóòü ê ñîçäàâàåìîìó ôàéëó</param>
  24. void createFileWinApi(char* path);
  25. /// <summary>
  26. /// Óäàëÿåò ôàéë
  27. /// </summary>
  28. /// <param name="path">Ïóòü ê óäàëÿåìîìó ôàéëó</param>
  29. void deleteFileWinApi(char* path);
  30. /// <summary>
  31. /// ×òåíèå ôàéëà
  32. /// </summary>
  33. /// <param name="path">Ïóòü ÷èòàåìîãî ôàéëà</param>
  34. /// <returns>Âîçâðàùàåò ñîäåðæèìîå ïåðåäàâàåìîãî ôàéëà</returns>
  35. char* readWinApi(char* path);
  36. /// <summary>
  37. /// Çàïèñü â ôàéë
  38. /// </summary>
  39. /// <param name="path">Ïóòü ê ôàéëó, â êîòîðûé çàïèñûâàåì</param>
  40. /// <param name="str">Ñòðîêà, êîòîðóþ ïèøåì</param>
  41. void writeWinApi(char* path, char* str);
  42. /// <summary>
  43. /// Ôóíêöèÿ äëÿ íàõîæäåíèÿ ðåøåíèÿ êâàäðàòíîãî óðàâíåíèÿ ñðåäñòâàìè WinApi
  44. /// </summary>
  45. void withWinApi();
  46. /// <summary>
  47. /// Ôóíêöèÿ ïðîâåðÿþùàÿ êîëè÷åñòâî àðãóìåíòîâ
  48. /// </summary>
  49. /// /// <param name="count">Êîëè÷åñòâî àðãóìåíòîâ</param>
  50. void countArg(int count);