+ 1

C++ why std:: at every line instead of adding just once user namespace std;

I am wondering why some C++ programmers use std::: std::string name; std::cout << "What is your name?\n"; at every line instead of including just once the user namespace std;

20th Sep 2018, 6:22 PM
Sabine Meijran-Prins
Sabine Meijran-Prins - avatar
1 Antwort
+ 2
Sabine if you include entire std namespace , it's more burden compared to limited access of making what is required at few lines... it's actually choice to do it either way
20th Sep 2018, 7:00 PM
Ketan Lalcheta
Ketan Lalcheta - avatar