#define clearscr system("cls");
you've affectively made it cross-platform, in that reguard. Just change the cls
to clear in the define.
Thanks,
Tyler Littlefield
Web: tysdomain.com
email: [email protected]
My programs don't have bugs, they're called randomly added features.
----- Original Message -----
From: [email protected]
To: [email protected]
Sent: Sunday, March 15, 2009 9:00 AM
Subject: Re: [c-prog] Re: to clean screen
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]
[Non-text portions of this message have been removed]