Стислий довідник до іспиту — визначення та концепції, проблема - рішення - результат.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <windows.h> | |
| #include <tlhelp32.h> | |
| #include <iostream> | |
| #include <vector> | |
| #include <string> | |
| #include <shellapi.h> | |
| bool IsRunAsAdmin() { | |
| bool isAdmin = false; | |
| HANDLE token = NULL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _CRT_SECURE_NO_WARNINGS // Отключаем предупреждения безопасности Windows | |
| #include <iostream> | |
| #include <cstring> | |
| #include <clocale> // Подключаем библиотеку для работы с локалью | |
| struct MemoryTest { | |
| char name[4]; // Выделили ровно 4 байта под имя (например: 'T', 'o', 'm', '\0') | |
| int secret_code; // Сразу за именем в памяти лежит секретный код (число) | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| #include <cstdlib> | |
| #include <ctime> | |
| #include <unistd.h> | |
| #include <termios.h> | |
| using namespace std; | |
| #define uint unsigned int |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <string> | |
| #include <regex> | |
| #include <vector> | |
| #include <cstdio> | |
| #include <cstdlib> | |
| using namespace std; | |
| // https://wttr.in/odesa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <windows.h> | |
| #include <conio.h> | |
| #include <ctime> | |
| using namespace std; | |
| // Размеры игрового поля | |
| const int WIDTH = 12; | |
| const int HEIGHT = 20; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main() { | |
| /// Choose task theme to test program behavior | |
| /// naming rule: ThemeTask has the same Name as target class with postfix Task | |
| /// <sample> auto task = TaskTheme::GreetingTask; </sample> | |
| /// by defaulttask has pointer to lastest work | |
| auto taskTheme = static_cast<TaskTheme>(static_cast<int>(TaskTheme::LastOneMark) - 1); | |
| TaskFactory factory; | |
| auto task = factory.GetTask(taskTheme); | |
| if (task == nullptr) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main() { | |
| /// Choose task theme to test program behavior | |
| /// naming rule: ThemeTask has the same Name as target class with postfix Task | |
| /// <sample> auto task = TaskTheme::GreetingTask; </sample> | |
| /// by defaulttask has pointer to lastest work | |
| auto taskTheme = static_cast<TaskTheme>(static_cast<int>(TaskTheme::LastOneMark) - 1); | |
| TaskFactory factory; | |
| auto task = factory.GetTask(taskTheme); | |
| if (task == nullptr) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| int main() { | |
| asdasd | |
| return 0; | |
| } |
NewerOlder