I have gotten over that error and am now running into a new one. I am using some code that Mista Wilson posted in
http://forum.thegamecreators.com/?m=forum_view&t=156784&b=22
struct BULLET{
int x,y,ID;
float speed,dir;
BULLET(){x=y=0;}
};
vector<BULLET> bullets(20);
Creating the bullets:
for(int i = 1; i < 20; i++){
bullets.push_back(BULLET);
bullets[i].ID=i;
}
I receive this error upon compile:
error C2664: 'std::vector<_Ty>::push_back' : cannot convert parameter 1 from 'const int' to 'const BULLET &'
1> with
1> [
1> _Ty=BULLET
1> ]
1> Reason: cannot convert from 'const int' to 'const BULLET'
1> No constructor could take the source type, or constructor overload resolution was ambiguous