Which of the following is the best to choose? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Which of the following is the best to choose?

1. Using namespace std 2. std::cout or std::cin 3. using std::cout or using std::cin

19th Jun 2019, 5:17 PM
Zain Ahmed
Zain Ahmed - avatar
2 Answers
+ 1
Whichever one you want. It doesn't matter. The creator of C++ uses 3., and most large-scale projects use 2., but it's just a convention.
20th Jun 2019, 2:53 PM
Vlad Serbu
Vlad Serbu - avatar
0
All are the same but the easier way is using the case 1 because then if you do a big program will be easier to write cout or other
23rd Jun 2019, 7:39 PM
Alexito
Alexito - avatar