Skip to content

Instantly share code, notes, and snippets.

View Soulstorm50's full-sized avatar

Soul Soulstorm50

View GitHub Profile
@Soulstorm50
Soulstorm50 / C# Последовательность чисел - вывод по N-й элемент
Created November 26, 2016 20:53
C# Последовательность чисел - вывод по N-й элемент
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication6
{
class Program
{
@Soulstorm50
Soulstorm50 / C# Вывод чисел словами в консоль
Last active November 26, 2016 22:58
C# Вывод чисел словами в консоль
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication21
{
@Soulstorm50
Soulstorm50 / C# Массив римских чисел
Last active November 26, 2016 22:35
C# Массив римских чисел
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication21
{
class Program
{
@Soulstorm50
Soulstorm50 / C# Лесенка
Last active November 26, 2016 22:24
C# Лесенка
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
@Soulstorm50
Soulstorm50 / C# Цифры на экране
Last active November 26, 2016 22:28
C# Цифры на экране
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication21
{
class Program
{
@Soulstorm50
Soulstorm50 / Clicker
Created November 5, 2016 17:55
Clicker
#include <windows.h>
#include <tchar.h>
#include <time.h>
LRESULT CALLBACK WindowProc(HWND, UINT, WPARAM, LPARAM);
VOID CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
void SetWindowCaption(HWND hwnd);
int clickCount = 0;
int timerCount = 0;
@Soulstorm50
Soulstorm50 / Statics
Created November 1, 2016 20:37
Statics
#include <windows.h>
#include "resource.h"
#include <ctime>
#include <map>
#include <windowsx.h>
BOOL CALLBACK DlgProc(HWND, UINT, WPARAM, LPARAM);
void drawStatic(HWND hWnd);
void ClearMemory();
void RedrawStatics(HWND hWnd);
@Soulstorm50
Soulstorm50 / Gallary
Created November 1, 2016 20:31
Gallary
#include <windows.h>
#include <string>
#include "resource.h"
#include <vector>
#include <string>
#include <tchar.h>
#include <io.h>
using namespace std;
#pragma comment(linker, "\"/manifestdependency:type='win32' \
@Soulstorm50
Soulstorm50 / Calc_Hide_buttons_&_text
Created October 29, 2016 09:31
Calc_Hide_buttons_&_text
#include <tchar.h>
#include <Windows.h>
#include <map>
#pragma comment(linker, "\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' \
publicKeyToken='6595b64144ccf1df' language='*'\"")
BOOL CALLBACK EnumChildProc(HWND hWindow, LPARAM lParam);
LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);
@Soulstorm50
Soulstorm50 / ResizeMoveWindows
Created October 29, 2016 09:25
ResizeMoveWindows
#include <tchar.h>
#include <Windows.h>
#include <map>
#pragma comment(linker, "\"/manifestdependency:type='win32' \
name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' \
publicKeyToken='6595b64144ccf1df' language='*'\"")
LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM);
VOID CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);