산성비
-
[API]산성비 응용0x05 Programming/API / MFC 2009. 9. 29. 01:38
#include "stdafx.h" #include "my.h" char g_words[5][20]={"wParam","lParam","hdc","hWnd","test"}; int g_windex=0; char g_rain[20]; int g_xpos=0; int g_ypos=0; char g_key[20]; int g_kindex=0; int g_score=0; int GetNextWord() { if(g_windex < 5) { strcpy(g_rain,g_words[g_windex]); g_windex= rand()%5-1; g_xpos = rand()%500; g_ypos = 0; return 0; } return -1; } void MyIni(HWND hWnd, WPARAM wParam, LPA..