0

Can any one tell me in c++ where we use namespace std and where we not use it ???

use of namespace std

15th Aug 2018, 5:16 PM
Samrat✌✌
Samrat✌✌ - avatar
8 odpowiedzi
+ 2
Samrat✌✌ ,if you don't use it, you will not get details from std namespace... other way to work without namespace is use std::cout , std::endl as per requirement rather than entirely loading namespace std
15th Aug 2018, 5:43 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 2
Samrat✌✌ well you can define your own namespaces in c++, so if the need for that ever arises, you won't be only using std
16th Aug 2018, 7:24 AM
hinanawi
hinanawi - avatar
+ 1
it's usually not used when you'll potentially be working with multiple namespaces, because things can get muddled up
15th Aug 2018, 10:18 PM
hinanawi
hinanawi - avatar
+ 1
Samrat✌✌ all defined in namespace std... for example cout, endl
16th Aug 2018, 5:02 AM
Ketan Lalcheta
Ketan Lalcheta - avatar
+ 1
ohh
16th Aug 2018, 5:09 AM
Samrat✌✌
Samrat✌✌ - avatar
+ 1
thanku hinanawi ☺☺☺
16th Aug 2018, 1:46 PM
Samrat✌✌
Samrat✌✌ - avatar
0
what kind of detail Ketan Lalcheta ???
16th Aug 2018, 4:44 AM
Samrat✌✌
Samrat✌✌ - avatar
0
lol i think there is only one std hinanawi 😂😂😂😂😂
16th Aug 2018, 4:45 AM
Samrat✌✌
Samrat✌✌ - avatar