+ 1

What inbuilt function should i use if clrscr() from <conio.h> not working in my compiler??

clrscr() used for clear screen

7th Aug 2018, 3:16 AM
Abhijeet
4 Respuestas
+ 7
VIJAY Cooking Tips It is because you are using outdated turbo C++. I reccommend to clear the course and upgrade your understanding. https://www.sololearn.com/discuss/288609/?ref=app
7th Aug 2018, 3:41 AM
Manual
Manual - avatar
+ 4
The clrscr() is/was not part of the C/C++ standard. The needs for having an extension to add some facilities to the language such as clearing the terminal contents, setting the cursor position on the screen, etc. convinced the independent developers to implement such platform-specific versions of a library at that time. Nowadays you still can find the custom libraries on Github and SourceForge ¹ which do the same job for you. The original implementation of the clrscr() for *nix platforms was nothing but a simple printf statement as void clrscr() { printf("\x1B[2J\x1B[0;0f"); } _____ ¹ https://sourceforge.net/projects/myconio/ https://sourceforge.net/projects/conio/
7th Aug 2018, 8:10 AM
Babak
Babak - avatar
+ 4
VIJAY Cooking Tips Visual studio or codeblocks both are good and free to use. Visual studio 2017 - What I use most - Windows and Mac https://www.sololearn.com/discuss/410578/?ref=app Code::Blocks - runs on Windows, Mac, and Linux https://www.sololearn.com/discuss/608805/?ref=app
8th Aug 2018, 7:47 AM
Manual
Manual - avatar
+ 1
so what is the best c++ complier
8th Aug 2018, 5:37 AM
Abhijeet