Let's suppose that we have the class Friends, what I would like to do is something like this:
string newclassinstance;
cout << "new name:";
getline(cin, newclassinstance);
Friends newclassinstance();
Please login or Register to submit your answer