Clear Screen?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Mierzejewski

    Clear Screen?

    How do I clear the text from my screen, other than a bunch of \n's or
    endl's?

    Tim M.


  • Victor Bazarov

    #2
    Re: Clear Screen?

    "Tim Mierzejewski" <timmierz@yahoo .com> wrote...[color=blue]
    > How do I clear the text from my screen, other than a bunch of \n's or
    > endl's?[/color]

    Please read FAQ 15.20. You can find FAQ
    here: http://www.parashift.com/c++-faq-lite/

    Victor


    Comment

    • Unforgiven

      #3
      Re: Clear Screen?

      Tim Mierzejewski wrote:[color=blue]
      > How do I clear the text from my screen, other than a bunch of \n's or
      > endl's?[/color]

      C++ can not clear the screen, as indicated in the FAQ Victor pointed you to.
      However, you can ask the OS to do it for you. The most common ways to do
      this are 'system("cls"); ' in Windows and system("clear") ;' in Linux. The
      system function is defined in <process.h>

      --
      Unforgiven

      "Not only do I not know the answer
      I don't even know what the question is"
      My world - Metallica

      Comment

      • Ashish

        #4
        Re: Clear Screen?


        "Unforgiven " <jaapd3000@hotm ail.com> wrote in message
        news:bdhs8i$t2r sj$1@ID-136341.news.dfn cis.de...[color=blue]
        > Tim Mierzejewski wrote:[color=green]
        > > How do I clear the text from my screen, other than a bunch of \n's or
        > > endl's?[/color]
        >
        > C++ can not clear the screen, as indicated in the FAQ Victor pointed you[/color]
        to.

        Huh? C++ can do a lot of things using the OS specific libraries. Dont say
        C++ cannot clear the screen. Instead, you should say standard C++ cannot
        clear the screen.

        [color=blue]
        > However, you can ask the OS to do it for you. The most common ways to do
        > this are 'system("cls"); ' in Windows and system("clear") ;' in Linux. The
        > system function is defined in <process.h>
        >
        > --
        > Unforgiven
        >
        > "Not only do I not know the answer
        > I don't even know what the question is"
        > My world - Metallica
        >[/color]


        --
        -Ashish
        --------------------------------------------------------------------------
        Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
        http://www.123ashish.com http://www.softwarefreaks.com


        Comment

        • Victor Bazarov

          #5
          Re: Clear Screen?

          "Ashish" <ashoooo@hotmai l.com> wrote...[color=blue]
          >
          > "Unforgiven " <jaapd3000@hotm ail.com> wrote in message
          > news:bdhs8i$t2r sj$1@ID-136341.news.dfn cis.de...[color=green]
          > > Tim Mierzejewski wrote:[color=darkred]
          > > > How do I clear the text from my screen, other than a bunch of \n's or
          > > > endl's?[/color]
          > >
          > > C++ can not clear the screen, as indicated in the FAQ Victor pointed you[/color]
          > to.
          >
          > Huh? C++ can do a lot of things using the OS specific libraries. Dont say
          > C++ cannot clear the screen. Instead, you should say standard C++ cannot
          > clear the screen.[/color]

          That's the only C++ we speak of here.


          Comment

          • Victor Bazarov

            #6
            Re: Clear Screen?

            "Ashish" <ashoooo@hotmai l.com> wrote...[color=blue]
            >
            > "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
            > news:vfp4veg8id 694c@corp.super news.com...[color=green]
            > > "Ashish" <ashoooo@hotmai l.com> wrote...[color=darkred]
            > > >
            > > > "Unforgiven " <jaapd3000@hotm ail.com> wrote in message
            > > > news:bdhs8i$t2r sj$1@ID-136341.news.dfn cis.de...
            > > > > Tim Mierzejewski wrote:
            > > > > > How do I clear the text from my screen, other than a bunch of \n's[/color][/color]
            > or[color=green][color=darkred]
            > > > > > endl's?
            > > > >
            > > > > C++ can not clear the screen, as indicated in the FAQ Victor pointed[/color][/color]
            > you[color=green][color=darkred]
            > > > to.
            > > >
            > > > Huh? C++ can do a lot of things using the OS specific libraries. Dont[/color][/color]
            > say[color=green][color=darkred]
            > > > C++ cannot clear the screen. Instead, you should say standard C++[/color][/color][/color]
            cannot[color=blue][color=green][color=darkred]
            > > > clear the screen.[/color]
            > >
            > > That's the only C++ we speak of here.
            > >
            > >[/color]
            >
            > Thats what I said too... but dont misguide the OP by saying that C++[/color]
            cannot

            Misguide?
            [color=blue]
            > do this, or can do that. Guide him to an appropriate newsgroup. I am sure
            > you understand that.[/color]

            But in all honesty, C++ cannot clear the screen. It's some OS-
            specific library call that does that. Or sequence of characters
            output to console or ... But it is not a language thing. And,
            by the way, while there exist extensions to the language created
            by some eager compiler vendors, there is only one C++ -- Standard.

            That's what we mean when we say "C++ cannot do that". Another
            example: can C++ read files? Yes. Can C++ read JPEG files? Yes.
            Can C++ read and display JPEG files? NO. Displaying them is not
            a language feature. C++ cannot do that. Not standard, not any
            other C++. The same with clearing the screen.

            Guiding others to a particular newsgroup is a voluntary thing. If
            you stop me in the street and ask whether I could give you a lift
            to a town a thousand kilometres away, I'll probably say "No, sorry,
            I cannot do that", but I am not obligated to explain to you all
            possible options you have or direct you to a bus station. It is
            up to you to figure that out. (Of course it might be mighty kind
            of me to point you to a bus stop, and I _probably_ would do that
            if I knew where you were going -- The OP just asked whether there
            was a way to clear the screen except outputting newline characters,
            and there isn't). See the point?

            Anyway...

            Victor


            Comment

            • Ashish

              #7
              Re: Clear Screen?


              "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
              news:vfp6v1kb2j i0c4@corp.super news.com...[color=blue]
              > "Ashish" <ashoooo@hotmai l.com> wrote...[color=green]
              > >
              > > "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
              > > news:vfp4veg8id 694c@corp.super news.com...[color=darkred]
              > > > "Ashish" <ashoooo@hotmai l.com> wrote...
              > > > >
              > > > > "Unforgiven " <jaapd3000@hotm ail.com> wrote in message
              > > > > news:bdhs8i$t2r sj$1@ID-136341.news.dfn cis.de...
              > > > > > Tim Mierzejewski wrote:
              > > > > > > How do I clear the text from my screen, other than a bunch of[/color][/color][/color]
              \n's[color=blue][color=green]
              > > or[color=darkred]
              > > > > > > endl's?
              > > > > >
              > > > > > C++ can not clear the screen, as indicated in the FAQ Victor[/color][/color][/color]
              pointed[color=blue][color=green]
              > > you[color=darkred]
              > > > > to.
              > > > >
              > > > > Huh? C++ can do a lot of things using the OS specific libraries.[/color][/color][/color]
              Dont[color=blue][color=green]
              > > say[color=darkred]
              > > > > C++ cannot clear the screen. Instead, you should say standard C++[/color][/color]
              > cannot[color=green][color=darkred]
              > > > > clear the screen.
              > > >
              > > > That's the only C++ we speak of here.
              > > >
              > > >[/color]
              > >
              > > Thats what I said too... but dont misguide the OP by saying that C++[/color]
              > cannot
              >
              > Misguide?
              >[color=green]
              > > do this, or can do that. Guide him to an appropriate newsgroup. I am[/color][/color]
              sure[color=blue][color=green]
              > > you understand that.[/color]
              >
              > But in all honesty, C++ cannot clear the screen. It's some OS-
              > specific library call that does that. Or sequence of characters
              > output to console or ... But it is not a language thing. And,
              > by the way, while there exist extensions to the language created
              > by some eager compiler vendors, there is only one C++ -- Standard.
              >
              > That's what we mean when we say "C++ cannot do that". Another
              > example: can C++ read files? Yes. Can C++ read JPEG files? Yes.
              > Can C++ read and display JPEG files? NO. Displaying them is not
              > a language feature. C++ cannot do that. Not standard, not any
              > other C++. The same with clearing the screen.
              >
              > Guiding others to a particular newsgroup is a voluntary thing. If
              > you stop me in the street and ask whether I could give you a lift
              > to a town a thousand kilometres away, I'll probably say "No, sorry,
              > I cannot do that", but I am not obligated to explain to you all
              > possible options you have or direct you to a bus station. It is
              > up to you to figure that out. (Of course it might be mighty kind
              > of me to point you to a bus stop, and I _probably_ would do that
              > if I knew where you were going -- The OP just asked whether there
              > was a way to clear the screen except outputting newline characters,
              > and there isn't). See the point?
              >
              > Anyway...
              >
              > Victor
              >
              >[/color]

              I agree with you. But if you tell me that you cannot give me a lift to a
              thown a thousand kilometers away doesnt mean that you should tell me that
              there is no way I can go to that town. Thats what the other person did. He
              said that C++ cannot... I am not saying that he or you HAVE to guide the OP
              to an appropriate newsgroup, its voluntary ofcourse, but dont MISguide him
              saying that it cannot be done. Get it?


              --
              -Ashish
              --------------------------------------------------------------------------
              Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
              http://www.123ashish.com http://www.softwarefreaks.com


              Comment

              • Ashish

                #8
                Re: Clear Screen?


                "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
                news:vfp6v1kb2j i0c4@corp.super news.com...[color=blue]
                > "Ashish" <ashoooo@hotmai l.com> wrote...[color=green]
                > >
                > > "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
                > > news:vfp4veg8id 694c@corp.super news.com...[color=darkred]
                > > > "Ashish" <ashoooo@hotmai l.com> wrote...
                > > > >
                > > > > "Unforgiven " <jaapd3000@hotm ail.com> wrote in message
                > > > > news:bdhs8i$t2r sj$1@ID-136341.news.dfn cis.de...
                > > > > > Tim Mierzejewski wrote:
                > > > > > > How do I clear the text from my screen, other than a bunch of[/color][/color][/color]
                \n's[color=blue][color=green]
                > > or[color=darkred]
                > > > > > > endl's?
                > > > > >
                > > > > > C++ can not clear the screen, as indicated in the FAQ Victor[/color][/color][/color]
                pointed[color=blue][color=green]
                > > you[color=darkred]
                > > > > to.
                > > > >
                > > > > Huh? C++ can do a lot of things using the OS specific libraries.[/color][/color][/color]
                Dont[color=blue][color=green]
                > > say[color=darkred]
                > > > > C++ cannot clear the screen. Instead, you should say standard C++[/color][/color]
                > cannot[color=green][color=darkred]
                > > > > clear the screen.
                > > >
                > > > That's the only C++ we speak of here.
                > > >
                > > >[/color]
                > >
                > > Thats what I said too... but dont misguide the OP by saying that C++[/color]
                > cannot
                >
                > Misguide?
                >[color=green]
                > > do this, or can do that. Guide him to an appropriate newsgroup. I am[/color][/color]
                sure[color=blue][color=green]
                > > you understand that.[/color]
                >
                > But in all honesty, C++ cannot clear the screen. It's some OS-
                > specific library call that does that. Or sequence of characters[/color]

                And those OS-specific libraries cannot be used using C++. I get it now.



                Comment

                • Victor Bazarov

                  #9
                  Re: Clear Screen?

                  "Ashish" <ashoooo@hotmai l.com> wrote in message
                  news:bdi87u$ten tc$1@ID-75446.news.dfnc is.de...[color=blue]
                  >
                  > "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
                  > news:vfp6v1kb2j i0c4@corp.super news.com...[color=green]
                  > > "Ashish" <ashoooo@hotmai l.com> wrote...[color=darkred]
                  > > >
                  > > > "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
                  > > > news:vfp4veg8id 694c@corp.super news.com...
                  > > > > "Ashish" <ashoooo@hotmai l.com> wrote...
                  > > > > >
                  > > > > > "Unforgiven " <jaapd3000@hotm ail.com> wrote in message
                  > > > > > news:bdhs8i$t2r sj$1@ID-136341.news.dfn cis.de...
                  > > > > > > Tim Mierzejewski wrote:
                  > > > > > > > How do I clear the text from my screen, other than a bunch of[/color][/color]
                  > \n's[color=green][color=darkred]
                  > > > or
                  > > > > > > > endl's?
                  > > > > > >
                  > > > > > > C++ can not clear the screen, as indicated in the FAQ Victor[/color][/color]
                  > pointed[color=green][color=darkred]
                  > > > you
                  > > > > > to.
                  > > > > >
                  > > > > > Huh? C++ can do a lot of things using the OS specific libraries.[/color][/color]
                  > Dont[color=green][color=darkred]
                  > > > say
                  > > > > > C++ cannot clear the screen. Instead, you should say standard C++[/color]
                  > > cannot[color=darkred]
                  > > > > > clear the screen.
                  > > > >
                  > > > > That's the only C++ we speak of here.
                  > > > >
                  > > > >
                  > > >
                  > > > Thats what I said too... but dont misguide the OP by saying that C++[/color]
                  > > cannot
                  > >
                  > > Misguide?
                  > >[color=darkred]
                  > > > do this, or can do that. Guide him to an appropriate newsgroup. I am[/color][/color]
                  > sure[color=green][color=darkred]
                  > > > you understand that.[/color]
                  > >
                  > > But in all honesty, C++ cannot clear the screen. It's some OS-
                  > > specific library call that does that. Or sequence of characters
                  > > output to console or ... But it is not a language thing. And,
                  > > by the way, while there exist extensions to the language created
                  > > by some eager compiler vendors, there is only one C++ -- Standard.
                  > >
                  > > That's what we mean when we say "C++ cannot do that". Another
                  > > example: can C++ read files? Yes. Can C++ read JPEG files? Yes.
                  > > Can C++ read and display JPEG files? NO. Displaying them is not
                  > > a language feature. C++ cannot do that. Not standard, not any
                  > > other C++. The same with clearing the screen.
                  > >
                  > > Guiding others to a particular newsgroup is a voluntary thing. If
                  > > you stop me in the street and ask whether I could give you a lift
                  > > to a town a thousand kilometres away, I'll probably say "No, sorry,
                  > > I cannot do that", but I am not obligated to explain to you all
                  > > possible options you have or direct you to a bus station. It is
                  > > up to you to figure that out. (Of course it might be mighty kind
                  > > of me to point you to a bus stop, and I _probably_ would do that
                  > > if I knew where you were going -- The OP just asked whether there
                  > > was a way to clear the screen except outputting newline characters,
                  > > and there isn't). See the point?
                  > >
                  > > Anyway...
                  > >
                  > > Victor
                  > >
                  > >[/color]
                  >
                  > I agree with you. But if you tell me that you cannot give me a lift to a
                  > thown a thousand kilometers away doesnt mean that you should tell me that
                  > there is no way I can go to that town. Thats what the other person did.[/color]

                  No. Using the same analogy, the other person told you that you
                  can't get to another town in Victor's car. He didn't say that
                  clearing of the screen cannot be done. He said that clearing of
                  the screen cannot be done with C++. Get it?
                  [color=blue]
                  > He
                  > said that C++ cannot...[/color]

                  And you think that C++ can? Show me.
                  [color=blue]
                  > I am not saying that he or you HAVE to guide the OP
                  > to an appropriate newsgroup, its voluntary ofcourse, but dont MISguide him
                  > saying that it cannot be done. Get it?[/color]

                  Do you understand the difference between "it cannot be done" and
                  "it cannot be done using C++ means"? Saying the latter does NOT
                  imply the former, and in no way is misguiding. Get it?


                  Comment

                  • Ashish

                    #10
                    Re: Clear Screen?


                    "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
                    news:vfpch379tg aq22@corp.super news.com...[color=blue]
                    > "Ashish" <ashoooo@hotmai l.com> wrote in message
                    > news:bdi87u$ten tc$1@ID-75446.news.dfnc is.de...[color=green]
                    > >
                    > > "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
                    > > news:vfp6v1kb2j i0c4@corp.super news.com...[color=darkred]
                    > > > "Ashish" <ashoooo@hotmai l.com> wrote...
                    > > > >
                    > > > > "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
                    > > > > news:vfp4veg8id 694c@corp.super news.com...
                    > > > > > "Ashish" <ashoooo@hotmai l.com> wrote...
                    > > > > > >
                    > > > > > > "Unforgiven " <jaapd3000@hotm ail.com> wrote in message
                    > > > > > > news:bdhs8i$t2r sj$1@ID-136341.news.dfn cis.de...
                    > > > > > > > Tim Mierzejewski wrote:
                    > > > > > > > > How do I clear the text from my screen, other than a bunch[/color][/color][/color]
                    of[color=blue][color=green]
                    > > \n's[color=darkred]
                    > > > > or
                    > > > > > > > > endl's?
                    > > > > > > >
                    > > > > > > > C++ can not clear the screen, as indicated in the FAQ Victor[/color]
                    > > pointed[color=darkred]
                    > > > > you
                    > > > > > > to.
                    > > > > > >
                    > > > > > > Huh? C++ can do a lot of things using the OS specific libraries.[/color]
                    > > Dont[color=darkred]
                    > > > > say
                    > > > > > > C++ cannot clear the screen. Instead, you should say standard[/color][/color][/color]
                    C++[color=blue][color=green][color=darkred]
                    > > > cannot
                    > > > > > > clear the screen.
                    > > > > >
                    > > > > > That's the only C++ we speak of here.
                    > > > > >
                    > > > > >
                    > > > >
                    > > > > Thats what I said too... but dont misguide the OP by saying that C++
                    > > > cannot
                    > > >
                    > > > Misguide?
                    > > >
                    > > > > do this, or can do that. Guide him to an appropriate newsgroup. I am[/color]
                    > > sure[color=darkred]
                    > > > > you understand that.
                    > > >
                    > > > But in all honesty, C++ cannot clear the screen. It's some OS-
                    > > > specific library call that does that. Or sequence of characters
                    > > > output to console or ... But it is not a language thing. And,
                    > > > by the way, while there exist extensions to the language created
                    > > > by some eager compiler vendors, there is only one C++ -- Standard.
                    > > >
                    > > > That's what we mean when we say "C++ cannot do that". Another
                    > > > example: can C++ read files? Yes. Can C++ read JPEG files? Yes.
                    > > > Can C++ read and display JPEG files? NO. Displaying them is not
                    > > > a language feature. C++ cannot do that. Not standard, not any
                    > > > other C++. The same with clearing the screen.
                    > > >
                    > > > Guiding others to a particular newsgroup is a voluntary thing. If
                    > > > you stop me in the street and ask whether I could give you a lift
                    > > > to a town a thousand kilometres away, I'll probably say "No, sorry,
                    > > > I cannot do that", but I am not obligated to explain to you all
                    > > > possible options you have or direct you to a bus station. It is
                    > > > up to you to figure that out. (Of course it might be mighty kind
                    > > > of me to point you to a bus stop, and I _probably_ would do that
                    > > > if I knew where you were going -- The OP just asked whether there
                    > > > was a way to clear the screen except outputting newline characters,
                    > > > and there isn't). See the point?
                    > > >
                    > > > Anyway...
                    > > >
                    > > > Victor
                    > > >
                    > > >[/color]
                    > >
                    > > I agree with you. But if you tell me that you cannot give me a lift to a
                    > > thown a thousand kilometers away doesnt mean that you should tell me[/color][/color]
                    that[color=blue][color=green]
                    > > there is no way I can go to that town. Thats what the other person did.[/color]
                    >
                    > No. Using the same analogy, the other person told you that you
                    > can't get to another town in Victor's car. He didn't say that
                    > clearing of the screen cannot be done. He said that clearing of
                    > the screen cannot be done with C++. Get it?
                    >[color=green]
                    > > He
                    > > said that C++ cannot...[/color]
                    >
                    > And you think that C++ can? Show me.
                    >[color=green]
                    > > I am not saying that he or you HAVE to guide the OP
                    > > to an appropriate newsgroup, its voluntary ofcourse, but dont MISguide[/color][/color]
                    him[color=blue][color=green]
                    > > saying that it cannot be done. Get it?[/color]
                    >
                    > Do you understand the difference between "it cannot be done" and
                    > "it cannot be done using C++ means"? Saying the latter does NOT
                    > imply the former, and in no way is misguiding. Get it?
                    >
                    >[/color]

                    Oh, why am I arguing with you anyways? I reinstalled my OS and lost all the
                    news and email filters. Time to ignore you and Dan Poop again. Goodbye.


                    Comment

                    • Default User

                      #11
                      Re: Clear Screen?



                      Ashish wrote:
                      [color=blue]
                      > Oh, why am I arguing with you anyways? I reinstalled my OS and lost all the
                      > news and email filters. Time to ignore you and Dan Poop again. Goodbye.[/color]


                      Is there some reason you had three screens worth of quotes for this tiny
                      reply?



                      Brian Rodenborn

                      Comment

                      • Ashish

                        #12
                        Re: Clear Screen?


                        "Default User" <first.last@com pany.com> wrote in message
                        news:3EFCCDAD.A 7B2C176@company .com...[color=blue]
                        >
                        >
                        > Ashish wrote:
                        >[color=green]
                        > > Oh, why am I arguing with you anyways? I reinstalled my OS and lost all[/color][/color]
                        the[color=blue][color=green]
                        > > news and email filters. Time to ignore you and Dan Poop again. Goodbye.[/color]
                        >
                        >
                        > Is there some reason you had three screens worth of quotes for this tiny
                        > reply?
                        >[/color]

                        Yes. A couple of reasons actually. First, it has become an off-topic thread
                        and anyone who cares to read off-topic posts should probably take the
                        efforts to scroll down to the bottom. Second, I am too lazy.


                        --
                        -Ashish
                        --------------------------------------------------------------------------
                        Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
                        http://www.123ashish.com http://www.softwarefreaks.com


                        Comment

                        • Jack Klein

                          #13
                          Re: Clear Screen?

                          On Fri, 27 Jun 2003 13:30:17 -0400, "Ashish" <ashoooo@hotmai l.com>
                          wrote in comp.lang.c++:
                          [color=blue]
                          >
                          > "Unforgiven " <jaapd3000@hotm ail.com> wrote in message
                          > news:bdhs8i$t2r sj$1@ID-136341.news.dfn cis.de...[color=green]
                          > > Tim Mierzejewski wrote:[color=darkred]
                          > > > How do I clear the text from my screen, other than a bunch of \n's or
                          > > > endl's?[/color]
                          > >
                          > > C++ can not clear the screen, as indicated in the FAQ Victor pointed you[/color]
                          > to.
                          >
                          > Huh? C++ can do a lot of things using the OS specific libraries. Dont say
                          > C++ cannot clear the screen. Instead, you should say standard C++ cannot
                          > clear the screen.[/color]

                          I guarantee you that I can show you several systems where C++,
                          standard or not, cannot clear the screen. For the simple reason that
                          there IS NO SCREEN. One of the reasons C++ does not support a screen
                          is that it does not require one.

                          --
                          Jack Klein
                          Home: http://JK-Technology.Com
                          FAQs for
                          comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
                          comp.lang.c++ http://www.parashift.com/c++-faq-lite/
                          alt.comp.lang.l earn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq

                          Comment

                          • Ashish

                            #14
                            Re: Clear Screen?


                            "Jack Klein" <jackklein@spam cop.net> wrote in message
                            news:srcqfv0seo 1hja4eqi5m0vhpe k0mkq9osj@4ax.c om...[color=blue]
                            > On Fri, 27 Jun 2003 13:30:17 -0400, "Ashish" <ashoooo@hotmai l.com>
                            > wrote in comp.lang.c++:
                            >[color=green]
                            > >
                            > > "Unforgiven " <jaapd3000@hotm ail.com> wrote in message
                            > > news:bdhs8i$t2r sj$1@ID-136341.news.dfn cis.de...[color=darkred]
                            > > > Tim Mierzejewski wrote:
                            > > > > How do I clear the text from my screen, other than a bunch of \n's[/color][/color][/color]
                            or[color=blue][color=green][color=darkred]
                            > > > > endl's?
                            > > >
                            > > > C++ can not clear the screen, as indicated in the FAQ Victor pointed[/color][/color][/color]
                            you[color=blue][color=green]
                            > > to.
                            > >
                            > > Huh? C++ can do a lot of things using the OS specific libraries. Dont[/color][/color]
                            say[color=blue][color=green]
                            > > C++ cannot clear the screen. Instead, you should say standard C++ cannot
                            > > clear the screen.[/color]
                            >
                            > I guarantee you that I can show you several systems where C++,
                            > standard or not, cannot clear the screen. For the simple reason that
                            > there IS NO SCREEN. One of the reasons C++ does not support a screen
                            > is that it does not require one.
                            >[/color]

                            I am sorry, I had put my statement wrongly. But, since the OP asked about
                            clearing the screen, I assumed he had a screen (a computer monitor).


                            --
                            -Ashish
                            --------------------------------------------------------------------------
                            Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
                            http://www.123ashish.com http://www.softwarefreaks.com


                            Comment

                            • klaas

                              #15
                              Re: Clear Screen?

                              you do not want to use process.h since it is not platform independant,
                              use stdlib.h instead

                              regards

                              pol jak

                              Unforgiven wrote:
                              [color=blue]
                              > Tim Mierzejewski wrote:
                              >[color=green]
                              >>How do I clear the text from my screen, other than a bunch of \n's or
                              >>endl's?[/color]
                              >
                              >
                              > C++ can not clear the screen, as indicated in the FAQ Victor pointed you to.
                              > However, you can ask the OS to do it for you. The most common ways to do
                              > this are 'system("cls"); ' in Windows and system("clear") ;' in Linux. The
                              > system function is defined in <process.h>
                              >[/color]

                              Comment

                              Working...