C plus plus | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

C plus plus

I prefer using namespace std; Than using std::cout , in every line of code Which one is good for better and nice code please need help

5th Nov 2019, 2:30 PM
Chizy
Chizy - avatar
10 Answers
+ 6
The video is kind of advance but the way you explained it I understand thank you for your time and consideration
5th Nov 2019, 8:37 PM
Chizy
Chizy - avatar
+ 5
Well those are not mine videos I just watch them to learn too 😁
6th Nov 2019, 8:13 AM
blACk sh4d0w
blACk sh4d0w - avatar
+ 3
Watch those two and you'll know what are namespaces and why you shouldn't use 'using namespace std' https://m.youtube.com/watch?v=ts1Eek5w7ZA https://m.youtube.com/watch?v=4NYC-VU-svE
5th Nov 2019, 5:43 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 3
Hi @karim
14th Nov 2019, 7:51 PM
Chizy
Chizy - avatar
+ 2
using namespace is cleaner. also look into alias i think you will benefit from that utility.
5th Nov 2019, 3:41 PM
Stephen Frey
+ 2
using "using namespace std;" is better
8th Nov 2019, 12:54 PM
Sumiya
+ 2
I see a lot of "using namespace std is better" but according to pros, it isn't, like @nAutAxH AhmAd said. I think it's because it can confuse the compiler sometimes. But honestly, I'm still comfortable with "using namespace std".
9th Nov 2019, 12:59 AM
CeePlusPlus
CeePlusPlus - avatar
+ 2
Thanks
17th Nov 2019, 12:08 PM
Chizy
Chizy - avatar
+ 1
Hello my name is karim
14th Nov 2019, 5:21 PM
Карим Амиров
Карим Амиров - avatar