Main Menu

HOME

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

US Job listings




   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
Cosine example(C)
Show MySQL tables(PHP)
display a random entry from aMySQL database(PHP)
List all fonts(VB)
Name of browser(ASP.net)
getservbyport function returns the name of the service that uses a specified port(PHP)
add to data to spreadsheet(VBScript)
Odd or Even(ASP)

    




Copyright © 2003 by programmershelp.co.uk