-
dos output screen
at school, Borland C++ v. 4.5 opens an output screen which will not accept the code:
what could i do with version 4.5 to get the color to show up on the output screen and what library is needed to use the command.
Thanx for any comments and help that you all wish to give to me
-
Code:
#include <conio.h> // for 'textattr'
#include <cstdlib>
int main(void)
{
int i;
clrscr();
for (i=0; i<9; i++)
{
textattr(i + ((i+1) << 4));
cprintf("This is a test\r\n");
}
std::system("PAUSE");
return 0;
}
Note that <conio.h> is non-standard, though. :)
-Skipper