Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

wtf?

Name: Anonymous 2007-05-24 19:07 ID:ihqF4Bb8

All right.. what the hell am i doing wrong, /prog/?

#ifndef ENEMYCONTAINER_H
#define ENEMYCONTAINER_H

#include <oslib/oslib.h>
#include <list>
class EnemyContainer {
    public:
        list<Enemy> enemies;
        list<Enemy>::iterator me;
       
        void AddEnemy(NODE *path,int nPath, OSL_IMAGE *pic);
        void Step();
        void Draw();
        list<Enemy>::iterator FetchWithin(int x,int y,int radius);
   
};
#endif




Errors:

enemyContainer.h:8: error: ISO C++ forbids declaration of 'list' with no type
enemyContainer.h:8: error: expected ';' before '<' token
enemyContainer.h:9: error: ISO C++ forbids declaration of 'list' with no type
enemyContainer.h:9: error: expected ';' before '<' token


I INCLUDED <list> STUPID COMPILER!

Name: Anonymous 2007-05-24 19:18 ID:LiRv443s

namespace?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List