Before using cin for input we have got program run successfully how is that possible without cin | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Before using cin for input we have got program run successfully how is that possible without cin

I am in confusion becoz we have not used cin in earlier slot and now we have

30th Oct 2018, 4:01 AM
Anamika Yadav
Anamika Yadav - avatar
2 Answers
+ 1
std::cin just gets an input stream, it doesn't make a program run successfully. Perhaps your question is better suited in the discussion section of the tutorial you're on?
30th Oct 2018, 4:06 AM
Coordinate Newton
Coordinate Newton - avatar
0
Why do you think we would need cin to run a program successfully?
30th Oct 2018, 4:03 AM
Vlad Serbu
Vlad Serbu - avatar