How to ask user to enter his name using cin | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How to ask user to enter his name using cin

8th May 2017, 7:06 AM
Pratik Ghosh
Pratik Ghosh - avatar
4 Answers
+ 9
string name; cout << "What is thy name good pilgrim?"; cin >> name;
8th May 2017, 7:08 AM
jay
jay - avatar
+ 6
I like the course here! It is pretty good to enable a basic knowledge of c++ after that I would (as I am) use reference sites such as cplusplus.com another good resource is stackoverflow https://stackoverflow.com/
8th May 2017, 7:21 AM
jay
jay - avatar
+ 1
thanks Jay, please can u provide me some c++ basic learning materials as I have to start it from scratch. As being an Electronics and Communication Engineer, less knowledge on programming but due to sudden requirement I have to start learning. Please if U have certain PDF s materials or links for learning programming do share.
8th May 2017, 7:16 AM
Pratik Ghosh
Pratik Ghosh - avatar
+ 1
thanks for the quick response also providing the link and reference.
8th May 2017, 7:24 AM
Pratik Ghosh
Pratik Ghosh - avatar