0

is it necessary to include using namespace std

14th Jul 2016, 4:33 PM
Harsha K J
6 Antworten
+ 5
No, but if you dont, every single object that is inside the std namespace need to have std:: before it. Example: #include <iostream> using namespace std; ... cout<<1; // Fine ... ---------------- #include <iostream> ... std::cout<<1; // Fine, but needs to have std:: at the beginning If you have a lot of cout statements, using the std namespace is good.
14th Jul 2016, 4:39 PM
this->getName()
0
thank you
14th Jul 2016, 5:06 PM
Harsha K J
0
yes it is necessary
15th Jul 2016, 9:06 AM
Mitchell Aninyang
Mitchell Aninyang - avatar
0
well said learned friends
15th Jul 2016, 12:01 PM
KASAIJA KENNETH
KASAIJA KENNETH - avatar
0
yaa
15th Jul 2016, 7:24 PM
akhil ck
0
can we use #include <iostream.h>
17th Jul 2016, 5:03 AM
Mohd YASEEN DESAI
Mohd YASEEN DESAI - avatar