guys, please help me...

how do i make clrscr() work? my friend told me to include conio.c, but i think that my version of dev-c++ doesn't have that...so i tried downloading conio.c...but the problem is, clrscr() still doesn't work in my pc but it works in my friend's pc...we're both using dev-c++...

what do i need to do? please help me...

super thanks in advance!

Recommended Answers

clrscr() is a presumptuous Borland fetish. Not every user of your program wants it!!!

In Dev C++ you can use system("CLS") to do the trick, the old DOS command. Include the stdlib.h for the system() function.

By the way, Dev C++ is a very nice IDE for a set of …

Jump to Post

All 12 Replies

Re: how to make clrscr() work 80 80

guys, please help me...

how do i make clrscr() work? my friend told me to include conio.c, but i think that my version of dev-c++ doesn't have that...so i tried downloading conio.c...but the problem is, clrscr() still doesn't work in my pc but it works in my friend's pc...we're both using dev-c++...

what do i need to do? please help me...

super thanks in advance!

Read this:
http://www.daniweb.com/techtalkforums/thread13532-system%28cls%29.html

Re: how to make clrscr() work 80 80

HI WEL I USE BORLAND C++. BUT IT IS SUPPOSED TO WORK ON ANY VERSION OF C++. JUST VERIFY THIS
1. ARE ALL YOOUR HEADER FILE ON A SINGLE FOLDER. MAYBE YOU COULD HAVE INSTALLED IT NOT PROPERLY.
IN TURBO C++ I USE #INLCUDE<CONIO.H>

AND I USE CLRSCR();

TRY IT ON YOUR DEV C++. BY THE WAY CAN ANYBODY TELL WATS THIS DEV C++. IS IT ANY DIFFERENT FROM TURBO OR BORLAND C++ :lol:

Re: how to make clrscr() work 80 80

BUT IT IS SUPPOSED TO WORK ON ANY VERSION OF C++.

NO, IT ISN'T.

BY THE WAY CAN ANYBODY TELL WATS THIS DEV C++. IS IT ANY DIFFERENT FROM TURBO OR BORLAND C++ :lol:

HTTP://WWW.BLOODSHED.NET/DEVCPP.HTML

DON'T TYPE IN ALL CAPS.

Re: how to make clrscr() work 80 80

Look at the big button on your keyboard marked "Caps Lock". Press it until the CAPITAL LETTERS go away.

Re: how to make clrscr() work 80 80

clrscr() is a presumptuous Borland fetish. Not every user of your program wants it!!!

In Dev C++ you can use system("CLS") to do the trick, the old DOS command. Include the stdlib.h for the system() function.

By the way, Dev C++ is a very nice IDE for a set of open source GNU compilers (mainly GCC and G++). The IDE comes in Windows and Linux versions. For Linux CLS has to be replaced with something else.

Re: how to make clrscr() work 80 80

not at all a fetish, just overused by people that read tutorials by other people who abused it :)

There can be good reason to use it, for example if you were creating a fullscreen DOS application in Turbo Vision and wanted to clean up after yourself when terminating it.

Re: how to make clrscr() work 80 80

ok guys thanks for the clarification.caps lock on was my typing mistake. sorry

Re: how to make clrscr() work 80 80

thanks for all the help!

Re: how to make clrscr() work 80 80

Try to use 'fflush()' function with the argument 'stdout'.
When ever you want to clear your screen, just add this fflush(stdout). But remmember that it will fflush all standard out-put. But you use this. :cheesy:

Re: how to make clrscr() work 80 80

Try to use 'fflush()' function with the argument 'stdout'.
When ever you want to clear your screen, just add this fflush(stdout). But remmember that it will fflush all standard out-put. But you use this. :cheesy:

Did you tested it? I really doubt about that...

Re: how to make clrscr() work 80 80

Friends,seems like many of us are having problem in using clrscr() function in DEV C++.We need to know the fact that functions call and return type values which are by default of void type in C but not in c++In c++ we need to tell the function what value is retuned too.
So use void clrscr(void) instead of clrscr().
I hope this works.

Re: how to make clrscr() work 80 80

Please do not resurrect long-dead (and solved) threads.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.