Main Menu

HOME

.Net
ASP
Assembly
C
C++
Delphi
HTML
Java
JavaScript
MySQL
PC interface
Powershell
Perl
PHP
VBScript
Visual Basic
XML

Make money selling software. Check this out here

Hosted clickbank mall. Check this out here




   Misc

   Amazon

   Links

    


Coloured text using textattr
 

 

 

Description

Some compilers in their conio.h include file have a textattr function this allows you to set the color of the text .

Code

#include <conio.h>

int main()
{
int color;

for (color=1;color<=16;color++)
{
textattr(color);
cprintf("This is color %d",color);
}
return 0;
}

Information

tested using LCC Win 32

 


 

 

Download

textcolor.txt


 




   Sponsors
 

   Software
500 Java Tips E-book
PHP editor
PERL editor
Beginning Java
Beginning Visual Basic
Learn VB.net
Learn VB 6
VB and databases
ASP image library
C++ builder programming
C++ fundamentals

   Source Code
Odd or Even(ASP)
number of log file entries of a certain status code(VBScript)
display the user agent(ASP.net)
Block more than one IP address(ASP)
Changing the case of a string(VB.net)
Do While loop(PHP)
get current url using PHP_SELF(PHP)
writing on the desktop(VB)

    




Copyright © 2003 by programmershelp.co.uk