Skip to content

Instantly share code, notes, and snippets.

View qinhanlei's full-sized avatar
Hello, World!

WingStone qinhanlei

Hello, World!
View GitHub Profile
qinhanlei / gist:2326023
Created April 7, 2012 06:53
windows console programming
void SetCursor(int x, int y)
COORD cd = {(short)x, (short)y};
HANDLE g_hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(g_hOutput, cd);
void SetColor(unsigned short ForeColor=0xFFFF,unsigned short BackGroundColor=0)
HANDLE m_outputHandle = GetStdHandle(STD_OUTPUT_HANDLE);