0

How to make the cin command ask a question in the output?

I tried using cout but it didnt work

25th Feb 2017, 1:40 AM
Oliver
Oliver - avatar
2 Réponses
+ 2
this is kind of badly worded.... cout << "enter num"; cin >> num; if you are dealing with objects and overloaded the >> operator. cin >> mObj; this overload could have cout statements that prompt the user to enter values for all of that objects member variables. hope this helps!!
25th Feb 2017, 6:27 AM
Michael Szczepanski
Michael Szczepanski - avatar
0
Thank you, I will try this.
25th Feb 2017, 7:21 AM
Oliver
Oliver - avatar