資源簡介
類似于黑客帝國里的代碼雨
代碼片段和文件信息
#include??
#define?ID_TIMER?1?
#define?STRMAXLEN?25?//一個顯示列的最大長度?“VC中編輯運行”
#define?STRMINLEN?8?//一個顯示列的最小長度?
LRESULT?CALLBACK?WndProc(HWND?UINT?WPARAM?LPARAM);
//////////////////////////////////////////////////////////////////?
//////////////////////////////////////////////////////////////////?
typedef?struct?tagCharChain?//整個當作屏幕的一個顯示列這是個雙向列表?
{
struct?tagCharChain?*prev;?//鏈表的前個元素?
TCHAR?ch;?//一個顯示列中的一個字符?
struct?tagCharChain?*next;?//鏈表的后個元素?
}CharChain?*pCharChain;
typedef?struct?tagCharColumn
{
CharChain?*head?*current?*point;
int?x?y?iStrLen;?//顯示列的開始顯示的xy坐標iStrLen是這個列的長度?
int?iStopTimes?iMustStopTimes;?//已經停滯的次數和必須停滯的次數必須停滯的次數是隨機的?
}CharColumn?*pCharColumn;
int?main(HINSTANCE?hInstance?HINSTANCE?hPrevInstance
PSTR?szCmdLine?int?iCmdShow)
{
static?TCHAR?szAppName[]?=?TEXT(“matrix“);
HWND?hwnd;
MSG?msg;
WNDCLASS?wndclass;
wndclass.style?=?CS_HREDRAW?|?CS_VREDRAW;
wndclass.lpfnWndProc?=?WndProc;
- 上一篇:點云數據(圓柱面)
- 下一篇:QT多線程處理圖像變換和圖像融合
評論
共有 條評論