hear me out...

This is a discussion on hear me out... within the C++ Programming forums, part of the General Programming Boards category; at first this is going to sound like i am asking something that would get me flamed had it been, ...

  1. #1
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465

    hear me out...

    at first this is going to sound like i am asking something that would get me flamed had it been, in fact, what i was asking. i want to say right up front that i am NOT asking how to clear the screen. i already know ways to do this if i truly wanted it done.

    that being said, my problem is as follows:

    how do i clear the screen?

    no no, im just joking. here is my problem, seriously:

    i went to use the clrscr() function, because i didnt like how putting newlines to scroll off the screen looked. i regularly compile throughout my program to check for compile errors, so i dont have to fix them all at once. when i do this, the functions that are created but not defined bring up seperate errors.

    clrscr() gives me one of those errors. so my actual question is this:

    what is the function for clrscr(), so that i can define it in my program and have it run as if it could read this function normally, if this is possible.
    i am using Dev C++.

    and dont ask "did you include such and such?" because, yes, i included everything the FAQ said to.
    I came up with a cool phrase to put down here, but i forgot it...

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136

  3. #3
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    Post your code.

  4. #4
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    dont have any

    just wondering if you guys knew anything that would work smoothly and quickly so that i wouldnt have to scroll.

    ill try out that system("cls") thing...
    I came up with a cool phrase to put down here, but i forgot it...

  5. #5
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >dont have any

    The how did you arrive at -

    clrscr() gives me one of those errors.
    The Windows option in the FAQ works with Dev C++.

  6. #6
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    by 'dont have any' i meant i dont have an attempt at a function written out for clrscr()

    and i dont have any other code at all relevant to this post except

    #include <conio.h>
    //...
    clrscr();
    //...


    its part of a game im making that i will show everyone when im finished, and i dont really want to reveal any code from it until its done
    I came up with a cool phrase to put down here, but i forgot it...

  7. #7
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    O ya, try using include <conio.c>. That should do the trick.

  8. #8
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    ah, brilliant.

    not only can i use the clrscr() function now, but my program takes up half as much memory!
    I came up with a cool phrase to put down here, but i forgot it...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 08-21-2007, 02:48 PM
  2. Simple C question: user input to repeat a loop
    By evernaut in forum C Programming
    Replies: 2
    Last Post: 11-18-2006, 09:23 AM
  3. need help with my programm that uses functions
    By datainjector in forum C Programming
    Replies: 8
    Last Post: 07-15-2002, 09:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21