I've hit a problem with the code and just thought someone here will definately know the answer so here's the problematic pile of ass:
Code: Select all
Level::Level(int htn, int vtn, const string &filename){
MAPX = htn;
MAPY = vtn;
fname = filename.c_str();
}
THe errors it gives me when I compile are these:
error C2758: 'Level::fname' : must be initialized in constructor base/member initializer list
no operator found which takes a left-hand operand of type 'const std::string'
I've never initialised a const string to another const string so im not sure whats up, nor am i not suprised somethings wrong. Like the title says, if you have the time, i'd be greatful. Other then that thankyou very much and take care yaoo.
Btw, if you're from Australia (like me :D ) Pure Pwnage is now on TV!! Ive seen every episode but now I dont have to rely on my crappy internet which has past its dl peak to watch them online. Who else has heard of PP?