Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-08-2008
Member
 
Join Date: Aug 2004
Posts: 76
clrscr(); in C

I am seeing a lot of clrscr();'s typed in programs & thought that it might be pretty easy than just to type many /n's. So, as I will try to type clrscr(); it wont be build cause it wont find the function clrscr. Now, I can see this work with other programs but it doesnt work with mine, How? Please help me.

Thanks
Reply With Quote
  #2  
Old 08-08-2008
Member
 
Join Date: Jun 2006
Posts: 620
It seems to me that you are trying to search a function which clears the screen cause I had the same problem a little while ago. If you are running the program in MSDOS (non-ansi code) then this will do the trick. The function of clrscr() would be compiler specific.

Code:
system("CLS");

If you need any more help then this site contains more DOS commands that will help you.

Regards
Reply With Quote
  #3  
Old 08-08-2008
Member
 
Join Date: Aug 2004
Posts: 76
Thanks but that doesnt work at all. I guess i am missing the prototype for both clrscr. Any other suggestions
Reply With Quote
  #4  
Old 08-08-2008
Member
 
Join Date: Dec 2007
Posts: 1,592
http://faq.cprogramming.com/cgi-bin/...&id=1043284385



This might just work fine - system("cls");
Also are you sure that clrscr() is in conio.h included
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "clrscr(); in C"
Thread Thread Starter Forum Replies Last Post
Clrscr() & Gotoxy() in C compiler? RadhaV Software Development 5 12-02-2009 09:56 PM


All times are GMT +5.5. The time now is 01:34 PM.