Hi, If anyone can point out my mistake it would most appreciated. I am trying to use a string in a class, but Visual Studio seems not be be recognizing the datatype. I have main.cpp and this is the header file: Visual Studio turns the 'int' blue, so it recognises that, but not the string datatype. Thanks!
Well, it's normal for vs .. why do you use std namespace and then std::string ? But i think it should work either way (i presume) .. string name or std::string
ya ... itcareer is correct... "int a_number " ( " ; - missing ") the semicolon (termination) for declaration is missing...