[QUOTE]Originally posted by Phoenix
#include <windows.h>
system("cls"); [/QUOTE
I must disagree with you on that, there is no need what so ever in including <windows.h> the system("cls"); will work anyway...
[QUOTE]Originally posted by Phoenix
#include <windows.h>
system("cls"); [/QUOTE
I must disagree with you on that, there is no need what so ever in including <windows.h> the system("cls"); will work anyway...
>>> system("cls");
... and then you should read the FAQ to find out why that is such a bad idea...
http://www.cprogramming.com/boardfaq.html#execs
... for example is one reason.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
A Big Thanks to all that helped me out on my two problems..
and for those interested..i solved my clear screen problem really easy by simply using:
#include <stdlib.h>
system("cls")
it works perfectly you just put the system("cls") where ever you want the screen to clear..
thnx again..
kimmiej
"You can lead a horse to water.... "
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
Sorry for my relative lack of knowledge, but if you copied the header from Borland (conio.h) and overwrote Microsoft's would clrscr() work?
Well, considering as nowhere in the previous posts before mine does it confirm what compiler is being used, I thought my offer of clrscr(); was a good one, considering no mention of compilers was made.
Its a shame that you are not as clever as programmers as you are rude and ungratefull, maybee then, you wouldnt have had to post here in the first place.
If unregistered would like to continue this conversation then please repost here.
As for helping, I will now not continue to try.
If you are running Linux, use system("clear"). If you are using DOS, here's my favorite way.
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
And that should be enought to clear the screen.
What will people say if they hear that I'm a Jesus freak?
What will people do if they find that it's true?
I don't really care if they label me a Jesus freak, there is no disguising the truth!
Jesus Freak, D.C. Talk
-gnu-ehacks
>>>
Its a shame that you are not as clever as programmers as you are rude and ungratefull, maybee then, you wouldnt have had to post here in the first place.
<<<
It is also a shame that so many people offer truly bad advice...
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
ahem...
for remarkable control over your textual display beyond your wildest dreams... tinker [safely, within 32K, which is 80 by 25 by 2] with 0xb800:0000...
hasafraggin shizigishin oppashigger...
Perhaps 'Adrianxw' would like to tell us all how and where to obtain the crystal ball he so obviously posesses. If he took time to study the posts before mine, he might just be able to work out (painful for him as it may be), that there were absolubtly no mentions of the users compiler.
Therefore their ungrateful response, deserved my critisism.
My response to writers of rude and ungrateful Emails that take up my valuble time to read and respond to, is this:
"If you can't say anything nice, don't say anything at all", something I learnt when I was 5!
See the moderators views on posts like the one sent in response to my help. Now, can we please get on with sorting out programming issues, instead of all this petty squabling.
Perhaps 'Adrianxw' would like to tell us all how and where to obtain the crystal ball he so obviously posesses.
It can be purchased for $4.99 at the magic crystal ball shop or ordered on CD.
I think the problem is solved. If you want to know how to clear the screen in about any environment possible, read theFAQ that's what it is for.
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
Sorry NV, I know you locked it, but I think there are a couple of important points to be made which Mr Ingleby doesn't seem to understand.
1. The FAQ is there to help people. Clearing the screen is probably the most frequently asked question on this, (and other), boards. Directing people to the FAQ is a service. There is a lot of good advice in the FAQ.
2. We now have a guy who can clear the screen with system(). Great, he is using the wrong tool. When his programs start to run too slowly, he will not understand why. The fact is, system() is bad advice.
Finally,
>>> that there were absolubtly no mentions of the users compiler.
... true, hence he should look in the FAQ. What is the point of suggesting a compiler specific method, when you don't know what compiler he is using?
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.