As the title suggest i want to create an object with the name that was entered by the user into the console.

This code looks stupid but you will get the idea what i want to do (although it doesn't work):

Code:
#include <iostream>
#include <string>

using namespace std;

int main()
{
string name;

string *p;

p=&name;

cin>>name;

cout<<*p<<endl;

string [name];

system("pause");
return 0;
}
If possible i dont want to use array because i am doing a pet clinic management system. Asking user how many pets they wanna admit into the clinic is unrealistic. The above code is not the code for the program but a "thought experiment" program about the problem i mentioned.