Robot class

How can I get an input by calling the user's name in robot class?

1
2
3
string name; // user's name

GetInput("Please enter your name:", name);


For the next step I should get input of an X coordinate by calling their name.
Last edited on
closed account (Dy7SLyTq)
cout<<"Please enter your name: ";
getline(cin, name);
found it

GetInput(name + ", bla bla..");
Topic archived. No new replies allowed.