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
#pragma once | |
#include <iostream> | |
using namespace std; | |
template <typename T> | |
class TemplList | |
{ | |
public: |
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> | |
using namespace std; | |
class Student | |
{ | |
string name; | |
string fathername; | |
string lastname; | |
string age; |
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> | |
using namespace std; | |
class Pasport | |
{ | |
string name; | |
string fathername; | |
string lastname; | |
string gender; |
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<math.h> | |
using namespace std; | |
static double Pi = 3.14; | |
class Figure abstract | |
{ | |
public: | |
Figure(){}; |
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; | |
typedef unsigned int uint; | |
class Container abstract | |
{ | |
int count; | |
public: | |
virtual int GetCount()=0; | |
virtual void Add(int value)=0; | |
virtual void Remove(int value)=0; |
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> | |
using namespace std; | |
class Weapon abstract | |
{ | |
public: | |
virtual void Shoot() = 0; |
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> | |
#pragma comment(linker, "\"/manifestdependency:type='win32' \ | |
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' \ | |
publicKeyToken='6595b64144ccf1df' language='*'\"") | |
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpszCmdLine, int nCmdShow) | |
{ | |
MessageBox(NULL, L"アレクサンドル", L"Aleksandr by Japan", MB_OK | MB_ICONASTERISK); | |
} |
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 <vector> | |
#include <string> | |
using namespace std; | |
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpszCmdLine, int nCmdShow) | |
{ | |
vector<int> memory; | |
int viewNum = 500; | |
int maxNum = 1000; |
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 <tchar.h> | |
#include <Windows.h> | |
LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM); | |
INT WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR szCmdLine, INT nCmdShow) | |
{ | |
TCHAR szClassWindow[] = TEXT("Win32Application"); | |
WNDCLASSEX wc = {}; | |
wc.cbClsExtra = 0; |
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> | |
int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpszCmdLine, int nCmdShow){ | |
TCHAR szWindowClass[] = TEXT("CalcFrame"); | |
TCHAR szWindowTitle[] = TEXT("Калькулятор"); | |
TCHAR szTextToSet[] = TEXT("My new title"); | |
HWND handler = FindWindow(szWindowClass, szWindowTitle); |