0
How do you use "" Clearscreen in C""", i wrote clrscr(); with header stdio.h and conio.h both, but it still keep showing error!
12 Respostas
+ 3
Conio.h is not a standard header file. That is why you can't use it everywhere. It was part of turbo c++ compiler which was used on dos os and it is 16 bit compiler. That means programs compiled from that compiler can't even run on 64 bit OS which we use nowadays. Using or learning it is completely useless and will not teach you any basics.
To clear screen you can use system("clear") which can be used in sololearn because it uses Linux to run programs.
On windows you can use system("cls")
And don't forget to include stdlib.h
+ 4
You can post in your own thread, no need to DM.
As already explained: WE NEED TO SEE YOUR CODE TO FIND OUT WHAT ISN'T WORKING.
"But it isn't working" etc. isn't a sufficient problem description.
+ 1
Which code? Which error? On your own local computer or on sololearn?
Isn't conio.h somewhat outdated?
+ 1
Several ideas here:
https://cplusplus.com/articles/4z18T05o/
If you need help, LINK YOUR CODE, so we can see what you are trying to do
+ 1
Dont use conio.h header file
It is only used in turbo c compiler
It has some functions like clrscr(), getch() to display out put because that code in turbo c is not executed in terminal
+ 1
Thankyou so much
0
I wrote some code on many Online compiler, everywhere its showing error 🥺
0
So, how do you use clrscr?
0
Oww, I'm following very old youtube playlist
0
Thanks both of you
0
Thankyou 🤝🏼
- 1
I want game by c