0

im using http://cpp.sh/ as my ide.
but clrscr() and gotoxy() is not working since conio is not recognize...is there any header file that supports this codes? please help..thanks

#include <iostream>
#include<conio>
using namespace std;
int main()
{
   clrscr();
    gotoxy(5,10);cout<<"HELLO WORLD";
}
4
Contributors
4
Replies
24
Views
1 Year
Discussion Span
Last Post by Dan_15
0

https://en.wikipedia.org/wiki/Conio.h tells us this is something from many decades ago. It's no longer used in most compilers and certainly nothing I've seen in the past decade.

If you have a need to use old functions like that, you may want to reasearch replacements for the compiler you choose.

0

so maybe you need to write

cpp.sh is an online compiler that you can test your theory with. It takes a few seconds to confirm that this does not work. conio is a non-standard library, which means not all compilers (most in fact) do not support it. Those that do support it to varying degrees. Finally, expecting an online compiler to support Windows-based console mode transformations is somewhat unreasonable.

2

expecting an online compiler to support Windows-based console mode transformations is somewhat unreasonable.

sorry. i overlooked that it's online ide. then i'm asking myself why is he can't just google what kind of library is that.

Votes + Comments
I'm noticed many of today's programmers have an aversion to research.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.