- 78 名前:デフォルトの名無しさん mailto:sage [2008/08/09(土) 21:55:23 ]
- >>72
引数shotの型が違う。 Bullet shot[100]; のとき、&shotは配列へのポインタで 関数の仮引数のBullet *shot[]はBulletへのポインタへのポインタ。 何がしたいのか良く分からんけど。 Bullet shot[100]; void Shot(int shot_ctrl_flg, Image* Star,MyShip *MyShip,Bullet *shot){略} か Bullet *shot[100]; void Shot(int shot_ctrl_flg, Image* Star,MyShip *MyShip,Bullet *shot[]){略} こうで、 Shot(ctrlmode, bullet, &MyShip, shot); こうじゃね?
|

|