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

Pages: 1-

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?

Name: Anonymous 2007-05-24 19:20 ID:yOsQpZNP

using C++.

Name: Anonymous 2007-05-24 19:26 ID:SHT7O77H

std::list

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

>>2
Yep. That was it. Now that i feel like a dumbass, back to programming.

Name: Anonymous 2007-05-24 21:35 ID:lMRY2Q11

This software needs more .NET

Name: Anonymous 2007-05-25 0:06 ID:LowuiF8s

Erase is backspace.

Name: Anonymous 2009-01-14 14:47

MODERATORS!MODERATORS!MODERATORS!

Name: Anonymous 2009-03-06 9:26

List of dependencies no.

Name: Trollbot9000 2009-07-01 8:32


I think that some.

Name: Anonymous 2011-01-31 21:32

<-- check em dubz

Name: tray 2012-03-15 1:26

Name: Sgt.Kabuᅳkiman௻㼚 2012-05-29 2:21

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

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