Is it necessary to write using namespace std ? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Is it necessary to write using namespace std ?

26th Aug 2018, 7:11 AM
Vaishnavi Rajkumar Pawar
1 ответ
+ 12
it's not compulsory to declare namespace std, but then you must mention scope for every function/class/variables which belong to that namespace. for example , if you don't declare namespace, for every cout or cin u will say std::cout or std::cin
26th Aug 2018, 7:25 AM
code learner
code learner - avatar