Results 1 to 4 of 4

Thread: clrscr(); in C

  1. #1
    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

  2. #2
    Join Date
    Jun 2006
    Posts
    623
    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

  3. #3
    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

  4. #4
    Join Date
    Dec 2007
    Posts
    1,599
    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

Similar Threads

  1. Clrscr() & Gotoxy() in C compiler?
    By RadhaV in forum Software Development
    Replies: 5
    Last Post: 12-02-2009, 09:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,712,784,422.60635 seconds with 16 queries