In this app we can't use getch command and conio.h header file ???? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In this app we can't use getch command and conio.h header file ????

17th Aug 2016, 9:21 PM
Asim
Asim - avatar
3 Answers
+ 2
just because of different complilers
18th Aug 2016, 1:23 AM
Aman Ankur
Aman Ankur - avatar
+ 1
There are alternatives provided by C++03 that the SoloLearn C++ compiler complies to.
17th Aug 2016, 10:43 PM
Stefan
Stefan - avatar
+ 1
All program inputs go through the code Environment's proprietary input screen rather than a console for inputs. Thus, the <conio.h> header file will not work. As for getch(), you will need to define it in your code because getch() is only defined in the <conio.h> header file. The only header file that compiles is the usual <iostream> for all the standard functions (cout, cin, etc.). All other header files need to be manually inserted in the main.
18th Aug 2016, 5:21 AM
WenT