+ 2

This is for what??

using namespace std;

3rd Nov 2016, 1:49 PM
Ali566
5 odpowiedzi
+ 2
"using namespace std;" Lets you use the commands in the "iostream" file without writing std:: in front of it. Example WITH "using namespace std;": cout << "Hello!"; WITHOUT "using namespace": std::cout <<"Hello!"; You just get rid of the std:: part which is pretty handy when writing large code.
3rd Nov 2016, 1:57 PM
Michael Marinis
Michael Marinis - avatar
+ 2
all functions in the standard library are defined in the namespace std, if you don't write "using namespace std" you have to write std:: for every function you use from the standard library. exp: std::cout << "Hello World" << std::endl;
3rd Nov 2016, 1:59 PM
Hamidreza Bayat
Hamidreza Bayat - avatar
+ 1
In C++ the standard method are in std namespace. Without this statement, you can call standard method like "cout" or "cin" writing "std::cout" or "std::cin".
3rd Nov 2016, 1:56 PM
Simone Trombiero
+ 1
tnx vry much
3rd Nov 2016, 7:49 PM
Ali566
0
"using namespace std;" why we are use this words? what is the mean?
7th Nov 2016, 2:37 PM
Best Clash
Best Clash - avatar