Why do we namespace std why not <conio.h>?? And what does namespace std implies?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why do we namespace std why not <conio.h>?? And what does namespace std implies??

8th Nov 2016, 1:25 AM
Ruthuja Udamale
5 Answers
+ 4
According to me conio. h is use so that we use clrscr ( clear the screen) and getch() in program
29th Oct 2019, 3:59 PM
Sonika
Sonika - avatar
+ 3
conio.h is not a standard library .It is extension of Borland compilers. using namespace std means std namespace will be use https://www.tutorialspoint.com/cplusplus/cpp_namespaces.htm
8th Nov 2016, 4:26 AM
рооройрпЛроЬрпНроХрпБрооро╛ро░рпН рокро┤ройро┐роЪрпНроЪро╛рооро┐
рооройрпЛроЬрпНроХрпБрооро╛ро░рпН рокро┤ройро┐роЪрпНроЪро╛рооро┐ - avatar
+ 2
using namespace std tells the compiler that we want to search for objects and methods in std namespace. Without this you would write std:: before each object in standard template library.
8th Nov 2016, 7:38 AM
A A
0
i want to know that about too.
8th Nov 2016, 4:30 AM
Dasun Madhuranga
Dasun Madhuranga - avatar
0
using namespace std include features c++ library whereas conio.h is not in c++ library but in the c library
8th Nov 2016, 10:15 AM
cherotich