0

How I can use "cin" in code in view question ?

//some code cin >> p cout << "Password: " << endl; return 0; Its good code or bad ? Who know, please help, I need at answer !

17th Nov 2016, 3:50 AM
Fiodar Otsuma
Fiodar Otsuma - avatar
2 odpowiedzi
+ 4
In my opinion, put the cout line above the cin line. That way, your program will ask you for input and then get it.
17th Nov 2016, 3:58 AM
Keto Z
Keto Z - avatar
0
cout simply means ask cin means to reply. you can't reply before ask. so the best option will be to use cout before cin.
17th Nov 2016, 6:10 PM
Franky BrainBox
Franky BrainBox - avatar