I am trying to initialise a string ive put #include <string> at the top however in the int main() section I try to initialise a string like this

string blah blah but it says string is undefined???
Do you also have the std namespace included somewhere? You will either want to use using namespace std; or using std::string; or std::string
Topic archived. No new replies allowed.