- 368 名前:デフォルトの名無しさん mailto:sage [2012/05/13(日) 15:36:54.96 ]
- >>367
すみません、エラーは a[0] = SRand (12); のところで「'a' : 定義されていない識別子です。」と出ました main.cpp #include "reset.h" int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){ ChangeWindowMode(TRUE), SetMainWindowText("ランダム"), DxLib_Init(), SetDrawScreen(DX_SCREEN_BACK ); void Reset();} reset.h void Reset(); reset.cpp void Reset(){ int a[5] = {0,0,0,0,0}; a[0] = SRand (12); } ちゃんと書くとこんな感じです
|

|