Why do we namespace std why not <conio.h>?? And what does namespace std implies?? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
+ 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