1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #pragma once
- #define _CRT_SECURE_NO_WARNINGS
- #include <stdio.h>
- #include <math.h>
- #include<Windows.h>
- #define PATH "task1.txt"
- #define PATH_ANSWER "answer.txt"
- #define PATH2 "task2.txt"
- #define ANSWERTASK2 "answer2.txt"
- /// <summary>
- /// Çàïèñûâàåò â ôàéë ñ ïóòåì path ñòðîêó answer
- /// </summary>
- /// <param name="path">Ïóòü ê ôàéëó</param>
- /// <param name="answer">Ñòðîêà äëÿ çàïèñè â ôàéë</param>
- void writeFile(char* path, char* answer);
- /// <summary>
- /// Ôóíêöèÿ äëÿ íàõîæäåíèÿ ðåøåíèÿ êâàäðàòíîãî óðàâíåíèÿ ñðåäñòâàìè ÿçûêà ïðîãðàììèðîâàíèÿ ÑÈ
- /// </summary>
- void withC();
- /// <summary>
- /// Ñîçäàåò íîâûé ôàéë
- /// </summary>
- /// <param name="path">Ïóòü ê ñîçäàâàåìîìó ôàéëó</param>
- void createFileWinApi(char* path);
- /// <summary>
- /// Óäàëÿåò ôàéë
- /// </summary>
- /// <param name="path">Ïóòü ê óäàëÿåìîìó ôàéëó</param>
- void deleteFileWinApi(char* path);
- /// <summary>
- /// ×òåíèå ôàéëà
- /// </summary>
- /// <param name="path">Ïóòü ÷èòàåìîãî ôàéëà</param>
- /// <returns>Âîçâðàùàåò ñîäåðæèìîå ïåðåäàâàåìîãî ôàéëà</returns>
- char* readWinApi(char* path);
- /// <summary>
- /// Çàïèñü â ôàéë
- /// </summary>
- /// <param name="path">Ïóòü ê ôàéëó, â êîòîðûé çàïèñûâàåì</param>
- /// <param name="str">Ñòðîêà, êîòîðóþ ïèøåì</param>
- void writeWinApi(char* path, char* str);
- /// <summary>
- /// Ôóíêöèÿ äëÿ íàõîæäåíèÿ ðåøåíèÿ êâàäðàòíîãî óðàâíåíèÿ ñðåäñòâàìè WinApi
- /// </summary>
- void withWinApi();
- /// <summary>
- /// Ôóíêöèÿ ïðîâåðÿþùàÿ êîëè÷åñòâî àðãóìåíòîâ
- /// </summary>
- /// /// <param name="count">Êîëè÷åñòâî àðãóìåíòîâ</param>
- void countArg(int count);
|