Hey 22fat, thanx for your help,
I found out that textcolor only works with the old c
output functions. All the verisons of printf and whatnot.
Thanx.
Korn
airdevil23@hotmail.com
"procrastination is the key to happiness"
I am used to c++ output, can anyone tell me how to
output a variable with the printf commands.
I got cprintf("Hello") to work.
char SQUARE = int(219);
cprintf(SQUARE); // doesnt not work,
What is the format for outputting variables??
Thanx
Korn
airdevil23@hotmail.com...
One note, the function, cout.flush(); does not cause textcolor() to work accordingly.
Korn
airdevil23@hotmail.com
"procrastination is the key to happiness"
Textcolor only registers a new color when the clrscr() is called.
textcolor(YELLOW);
clrscr();
cout << "I am yellow.";
textcolor(BLUE);
cout << "I am still yellow";
textcolor(GREEN);
clrscr();
cout << "I am Green.";
Is there a command that flushes the output...
Hi all,
When I use the textcolor() in a dos program, the color
doesnt change immediately, it registers about halfway through the program, not right before the text i want to color.
textcolor(YELLOW);
cout << "Hello"; // This is not yellow;
..
..
clrscr();
cout << "I...
I am writing a dos-based tetris program in which I need to solve the problem of having the pieces drop while looking for keyboard input form the users. I use the getch() function to get the ASCII values of the arrow keys. My problem is that when I call the getch() command the input stream...
// Trinity.h<br>
<br>
#ifndef trinity<br>
<br>
<br>
// Function : neo<br>
// Purpose: to display the name, date, and program title<br>
// Input: a date and a program name<br>
// Value(s) Returned: None<br>
<br>
void neo(apstring date, apstring program);<br>
<br>
// Function : morpheus<br>
//...
/* Programmer: Bill Korn<br>
Login:A17<br>
Computer#:26<br>
Period:1<br>
Program Title:Check.CPP<br>
Date:11/3/99<br>
<br>
Purpose:This program will allow the user to enter a starting<br>
deposit. It will then process a series of deposits,withdrawals<br>
. Then it...
Hello, thanx for your help.<br>
<br>
I need to display stars while the user is entering character<br>
at a password screen. Can someone post an example or give me some commands that i can fool around with. Thanx.<br>
<br>
Korn<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.