how to make clrscr() work

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Sep 2004
Posts: 13
Reputation: potential is an unknown quantity at this point 
Solved Threads: 0
potential potential is offline Offline
Newbie Poster

how to make clrscr() work

 
0
  #1
Dec 6th, 2004
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!
Quick reply to this message  
Join Date: Sep 2004
Posts: 220
Reputation: frrossk is an unknown quantity at this point 
Solved Threads: 9
frrossk's Avatar
frrossk frrossk is offline Offline
Posting Whiz in Training

Re: how to make clrscr() work

 
0
  #2
Dec 6th, 2004
Originally Posted by potential
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/techtalkforum...%28cls%29.html
Quick reply to this message  
Join Date: Nov 2004
Posts: 140
Reputation: anastacia is an unknown quantity at this point 
Solved Threads: 1
anastacia's Avatar
anastacia anastacia is offline Offline
Junior Poster

Re: how to make clrscr() work

 
0
  #3
Dec 6th, 2004
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:
:lol: I am not one of those who wait for things to happen, :p but one of those who make things happen ;)
Quick reply to this message  
Join Date: Apr 2004
Posts: 4,362
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 241
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: how to make clrscr() work

 
0
  #4
Dec 6th, 2004
Originally Posted by anastacia
BUT IT IS SUPPOSED TO WORK ON ANY VERSION OF C++.
NO, IT ISN'T.

Originally Posted by anastacia
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.
Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how to make clrscr() work

 
0
  #5
Dec 6th, 2004
Look at the big button on your keyboard marked "Caps Lock". Press it until the CAPITAL LETTERS go away.
Quick reply to this message  
Join Date: Oct 2004
Posts: 4,028
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 932
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: how to make clrscr() work

 
0
  #6
Dec 6th, 2004
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.
May 'the Google' be with you!
Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: how to make clrscr() work

 
0
  #7
Dec 7th, 2004
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.
Quick reply to this message  
Join Date: Nov 2004
Posts: 140
Reputation: anastacia is an unknown quantity at this point 
Solved Threads: 1
anastacia's Avatar
anastacia anastacia is offline Offline
Junior Poster

Re: how to make clrscr() work

 
0
  #8
Dec 7th, 2004
ok guys thanks for the clarification.caps lock on was my typing mistake. sorry
:lol: I am not one of those who wait for things to happen, :p but one of those who make things happen ;)
Quick reply to this message  
Join Date: Sep 2004
Posts: 13
Reputation: potential is an unknown quantity at this point 
Solved Threads: 0
potential potential is offline Offline
Newbie Poster

Re: how to make clrscr() work

 
0
  #9
Jan 11th, 2005
thanks for all the help!
Quick reply to this message  
Join Date: Sep 2004
Posts: 33
Reputation: letmec is an unknown quantity at this point 
Solved Threads: 2
letmec's Avatar
letmec letmec is offline Offline
Light Poster

Re: how to make clrscr() work

 
0
  #10
Jan 25th, 2005
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:
Quick reply to this message  
Closed Thread

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC