行,所以我孃家幫助,這constructuresC++結構和constructures
struct balls { balls() { SetTimer(hWnd, balls.BALL_ID, 1, null); } int Ex; int Ey; UINT_PTR BALL_ID; };
以及當我設置具有balls.BALL_ID麻煩定時器IM。編譯器認爲球是像球一樣的結構。以及我希望球有結構的價值。像這樣
balls() { SetTimer(hWnd, balls.BALL_ID, 1, null); } int Ex; int Ey; UINT_PTR BALL_ID; }; balls something;
現在它使用something.BALL_ID而不是balls.BALL_ID創建結構。 在球()中,它將它改變球()到某物()。 任何想法如何將balls.BALL_ID更改爲stuctureName.BALL_ID?
這些被稱爲「構造」不是「constructures」。 – adf88 2010-08-17 07:02:47