Try something more along the lines of:
#ifdef _WIN32
#define clrscr system("cls")
#else
define clrscr system("clear")
#endif--- In [email protected], cupofjava1...@... wrote: > > It is tempting to use system("cls"), but then you have effectively tethered > your code to one operating system which is find if you know it will always > run on M$ os. It's better to always try to use code that is not dependent on > a > particular os so that in the future you can easily port it to some other > language if the need arises. It's far better to create a for loop and print > 30 > newlines as others have mentioned in this thread. > **************Worried about job security? Check out the 5 safest jobs in a > recession. > (http://jobs.aol.com/gallery/growing-job-industries?ncid=emlcntuscare00000002) > > > [Non-text portions of this message have been removed] >
