This is bugging the hell out of me. This should be basic C++ stuff, like I figured out over a year ago. I've used strings so many times.
Why don't they work here?
Basically I'm creating a "tile" class, and one of its variables is supposed to be a string. This string will be something like "forest.png" so I can have tiles for basic terrain types.
Should be EASY.
Like this:
#include <string>
class tile
{
string tt; //was going to use type, but I think that's a reserved keyword, so tt for terrain type
int xloc;
int yloc; // location of the tile
};
Yeah, so I'm still working on it. But even this basic class won't work. It behaves like the string class doesn't exist:
error C2065: 'string' : undeclared identifier
What's going on? How can I hold the filename if I can't use strings?