c question
Results 1 to 2 of 2

Thread: c question

  1. #1
    Member
    Join Date
    Nov 2001
    Posts
    64

    c question

    im making a small program and im using borland 4.5

    i need to know how i can change the color of certain text and i cant find out how to do this anywhere.

    example if i wanted to print the statement

    cout<<"hello how are you";

    in green how would i do this????? thanx in advance.
    *the wise do sooner what the fools do later.
    --Gracian

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Posts
    227
    Easy Try this (the shortest version I can do):

    #include <conio.h>

    void main()
    {
    textcolor(8);
    cprintf("Colored text");
    }

    Hope this help...
    http://promote.opera.com/small/opera94x15.gif

    [gloworange]Sun7dots[/gloworange]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •