摘要:
1 #include <Windows.h> 2 #include <tchar.h> 3 #include <math.h> 4 #define PI 3.1415926 5 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 6 阅读全文
摘要:
↑ 界面太丑了,后来代码又被我改了: ↓ 阅读全文
摘要:
1 #include 2 #include 3 #include 4 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 5 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 6 int WINAPI WinMain(HINSTANCE hI... 阅读全文
摘要:
1 #include 2 #include 3 BOOLEAN InitWindowClass(HINSTANCE hInstance, int nCmdShow); 4 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); 5 int WINAPI WinMain(HINSTANCE hInstance, HINST... 阅读全文
摘要:
1 //Windows.h文件中包含应用程序中所需的数据类型和数据结构的定义 2 #include 3 #include 4 5 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); //窗口函数说明 6 //------------------------------以下是入口函数的代码-------... 阅读全文
摘要:
想要换背景颜色和字符颜色吗?想让按下非方向键,蛇不会死掉?想要解决屏幕一闪一闪的问题吗?转到C++控制台应用程序之贪吃蛇(改进版) 阅读全文