+ 2

Why we are using ' using namespace std; in program?

21st Oct 2016, 5:07 PM
Adarsh Kamal
Adarsh Kamal - avatar
5 Antworten
+ 12
@ cohen cout, endl are objects, why?
24th Nov 2016, 2:45 PM
SMSajid
SMSajid - avatar
+ 6
To put it short, it makes it so we don't have to put std:: before every standard library object, such as cout, cin, or endl.
21st Oct 2016, 5:50 PM
Cohen Creber
Cohen Creber - avatar
+ 2
@sm sajjad They just are. They're just objects of the standard library. They're certainly not functions due to the absence of parentheses.
24th Nov 2016, 5:07 PM
Cohen Creber
Cohen Creber - avatar
0
Thank bro
21st Oct 2016, 5:57 PM
Adarsh Kamal
Adarsh Kamal - avatar
0
namespace are very useful to solve a problem with same names of classes and functions. It's can be a big problem sometimes (especially in big projects).
21st Oct 2016, 6:04 PM
Evgeniy Dudnik
Evgeniy Dudnik - avatar