Skip to content

Instantly share code, notes, and snippets.

View Soulstorm50's full-sized avatar

Soul Soulstorm50

View GitHub Profile
@Soulstorm50
Soulstorm50 / TemplList.h
Created September 10, 2016 15:48
TemplList
#pragma once
#include <iostream>
using namespace std;
template <typename T>
class TemplList
{
public:
@Soulstorm50
Soulstorm50 / Aspirant.cpp
Created September 10, 2016 19:41
Aspirant
#include<iostream>
#include<string>
using namespace std;
class Student
{
string name;
string fathername;
string lastname;
string age;
@Soulstorm50
Soulstorm50 / Pasport.cpp
Created September 10, 2016 19:46
Pasport
#include<iostream>
#include<string>
using namespace std;
class Pasport
{
string name;
string fathername;
string lastname;
string gender;
@Soulstorm50
Soulstorm50 / Figure.cpp
Created September 10, 2016 19:48
Figure
#include<iostream>
#include<Windows.h>
#include<math.h>
using namespace std;
static double Pi = 3.14;
class Figure abstract
{
public:
Figure(){};
@Soulstorm50
Soulstorm50 / Container.cpp
Created September 10, 2016 19:51
Container
#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;
@Soulstorm50
Soulstorm50 / Abstract weapon.cpp
Created September 20, 2016 16:07
Abstract weapon
#include<iostream>
#include <windows.h>
#include <conio.h>
using namespace std;
class Weapon abstract
{
public:
virtual void Shoot() = 0;
@Soulstorm50
Soulstorm50 / NameByJapan
Created October 27, 2016 17:07
NameByJapan
#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);
}
@Soulstorm50
Soulstorm50 / угадай число
Created October 29, 2016 08:47
угадай число
#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;
@Soulstorm50
Soulstorm50 / MoveByArrowAndChangeTitle
Created October 29, 2016 08:59
MoveByArrowAndChangeTitle
#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;
@Soulstorm50
Soulstorm50 / ChangeWindowTitle
Created October 29, 2016 09:08
ChangeWindowTitle
#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);