Yeah, getchar(); gives the error:
Call to undefined function 'getchar'
Yeah, getchar(); gives the error:
Call to undefined function 'getchar'
The views expressed in the above post are not neccesarily the views of icuucme.
yes use systm("cls") .
UPDATE:
I am really tired i just realized that i answered the wrong question.
If you want to clear the screen you can use system() function from stdlib.h. you can consider the system function as a command interface. So to clear the screen you will type system("cls"); in your code.
Would stdlib.h affect the code you gave for adding colour?
The views expressed in the above post are not neccesarily the views of icuucme.
nope, shouldn't.Originally Posted by icuucme
on another side:
i just realize that system("pause") may not be idle because it always print the text "Press any key to continue . . .", so i'll still try to search for a better method. unless thats ok with you.
I deleted the system("pause"), didnt really like message that came up. Didnt need it anyways, the program still runs even without getch(). I get an error when i put in the color class tho.
The views expressed in the above post are not neccesarily the views of icuucme.
OK, i c.. i'll try a few things in borland later, unless your running on a deadline? I would say leave it out, but if your not i should be able to post a solution later.Originally Posted by icuucme
Thanx, i can wait, i would really want colour in the program without using cprintf
The views expressed in the above post are not neccesarily the views of icuucme.
LOL, getchar(); is a part of the stdio.h library i can't beleive that missed me.
Anyways i made the modification tested it and its ok.