Your name data member is of type string, so in order for this to all work either:
1) The header needs to #include the string header, or...
2) Any source file that #includes this class header must also #include the string header before it #includes the class header.
You also need to be mindful of any namespace issues as well.
Maybe:
Code:#include <string> class Player { double points,value; std::string name, pos; public: Player (std::string,std::string,double); };



LinkBack URL
About LinkBacks



I used to be an adventurer like you... then I took an arrow to the knee.