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!

9th Apr 2022, 1:52 PM
Sunny Kumar
Sunny Kumar - avatar
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
11th Apr 2022, 12:48 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar
+ 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.
9th Apr 2022, 2:21 PM
Lisa
Lisa - avatar
+ 1
Which code? Which error? On your own local computer or on sololearn? Isn't conio.h somewhat outdated?
9th Apr 2022, 2:10 PM
Lisa
Lisa - avatar
+ 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
9th Apr 2022, 2:16 PM
Lisa
Lisa - avatar
+ 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
10th Apr 2022, 5:36 PM
Anand</left>
Anand</left> - avatar
+ 1
Thankyou so much
11th Apr 2022, 2:56 AM
Sunny Kumar
Sunny Kumar - avatar
0
I wrote some code on many Online compiler, everywhere its showing error 🥺
9th Apr 2022, 2:12 PM
Sunny Kumar
Sunny Kumar - avatar
0
So, how do you use clrscr?
9th Apr 2022, 2:12 PM
Sunny Kumar
Sunny Kumar - avatar
0
Oww, I'm following very old youtube playlist
9th Apr 2022, 2:25 PM
Sunny Kumar
Sunny Kumar - avatar
0
Thanks both of you
9th Apr 2022, 2:25 PM
Sunny Kumar
Sunny Kumar - avatar
0
Thankyou 🤝🏼
10th Apr 2022, 5:46 PM
Sunny Kumar
Sunny Kumar - avatar
- 1
I want game by c
10th Apr 2022, 2:52 AM
Ahmed Elnaggar