|
|
Directx2d下的程序最近做个发射子弹的小实验。。。运行的时候最后一颗子弹出屏时发生错误啊~~result CXX0030Error: expression cannot be evaluated 懂的请帮我看下程序:
子弹发射和出屏用的是队列链表来实现
//move all the bullets
for(head = bullet_list.front;head != NULL;head = head->next)
{
head->ypos -= dy;
if(head->ypos < 0)
{
head = DeleteBullet(bullet_list,head);
}
}
我用的是vc6.0。。。
源文件都在附件里。谢谢指导啊!!! [em6] |
|