A
2013-07-12 17:14:59 UTC
Normally, for things like enemies, missiles etc. I would use either a std::vector or a std::list, and an iterator to iterate through each one.
I would usually do something like this:
typedef vector
missiles m;
vector
Then in my classes update method, it would be:
for (missilesIterator = m.begin(); missilesIterator != m.end(); ++missilesIterator) {
missilesIterator->Update();
}
Or something like that.
This usually works fine, suddenly I'm getting these errors:
Error C2143: syntax error: missing ) before 'string'
Error C2664: '_CrtDbgReportW' : cannot convert parameter 5 from 'int' to 'const wchar_t*'
Error C2059: syntax error : ')'
I have absolutely no idea what any of these errors mean, or how to correct them. I've never had this happen before.