Question:
C++, clearing the console without using system calls or non-standerd header files?
2009-02-02 21:41:24 UTC
I want to clear the console without using calls to the OS:
-> system("clear"); //linux users
-> system("cls"); //window users
or non-standard header files that won't port to different compilers such as "conio.h". Is there additional cross platform libraries that support this functionality? I read that stream objects contain internal stream pointers, can these be manipulated to interact with the objects cout and cin?
Three answers:
Craig R
2009-02-02 22:03:43 UTC
Send a couple hundred newlines to stdout.
maule
2016-12-24 17:20:40 UTC
ny is established as "long island" through fact earlier a admired individuals hero (Johnny Appleseed) planted a unmarried seed interior the midst of the city. Then, in a wierd warp in area-time, a boy named Jack planted a seed he believed to be magical interior the comparable spot. In what remains seen a marveling organic and organic progression, the two seeds fused jointly on a molecular point. After an outstanding rain, the seed hybrid grew into an apple 300ft tall and approximatively 330ft huge. The strangest component being the absence of a tree. it variety of feels the apple develop into thoroughly standard, different than it grew at modern from the floor with its very own roots like a beanstalk of a few type. for some destiny years, human beings might bypass to the city and seem up on the impossible fruit and think of "it somewhat is a huge apple". After a jointly as human beings began concerning the city itself as "long island". yet then, 1943 Oct eleventh, something unusual surpassed off. through fact the city laid to relax, the night as quickly as lower back upon them, there develop right into a stunning flash of purple easy. The flash lasted for almost 4-5 seconds. no person is definite what brought about the flash, yet as quickly because it develop into over the apple had merely disappeared. no longer basically had it vanished, the floor it had grown from had closed as though it weren't in any respect there. some say the apple had grown so super it created some form of fruity supernova and collapsed in on itself in a black hollow. some say the extraterrestrial beings to blame for the loss of existence of the dinosaurs got here decrease back and destroyed the apple besides. We will possibly in no way be attentive to precisely what surpassed off that night, yet one component is for specific. That develop right into a huge-*** apple.
videobobkart
2009-02-02 21:55:00 UTC
Not that I'm aware of.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...