text colouring

This is a discussion on text colouring within the C++ Programming forums, part of the General Programming Boards category; how do i change the colour of the text in c+?...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    3

    text colouring

    how do i change the colour of the text in c+?

  2. #2
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Do a search at:
    http://www.ProgrammersHeaven.com
    Or try using google.
    I found various zips and downloaded a few last night I believe.
    The world is waiting. I must leave you now.

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    156
    jesus christ, just answer the guy's question. Don't give him links to pointless sites so he could search hours and hours for something.

    SideNote: I expect some nerdy programmer to copy and paste what I said into quote tags(you guys always do that)
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: goldenbunny84@hotmail.com

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

  4. #4
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    > just answer the guy's question.
    We will. Just as long as he has tried first.

    > Don't give him links to pointless sites so he could search hours and hours for something.
    Why not?
    This way he figures it out for himeself and has the gratification and knowledge of learning something on his own, instead of people "breast feeding" him.
    The links weren't pointless in my opinion.
    ProgrammersHeaven has a lot of useful information.
    Google works wonders.

    I expect some nerdy programmer to copy and paste what I said into quote tags(you guys always do that)
    Nerdy hu? I guess I am a nerd. I have no problem with it either.
    I sense poor attitude me thinks...

    side note:
    I searched for something for about 2 weeks, and finally found it.
    I was very satisfied and excited once I did.
    The world is waiting. I must leave you now.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    Bonny why dont you answer his question?

    THATS WHAT I THOUGHT!!

    and, about ur wondering why u always get flamed, you just answered that question.
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Re: text colouring

    Originally posted by Bermuda
    how do i change the colour of the text in c+?
    //Neccessary header file
    #include <conio.h>

    //Change the text color
    void textcolor(int Color);

    //Change the background color
    void textbackground(int Color);

    //Print colored text (same syntax as printf() )
    cprintf(...);
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  7. #7
    Registered User
    Join Date
    May 2002
    Posts
    3

    answer

    thanks for the answer guys. i couldn't get it. i was unable to find the header file that contained the code.

  8. #8
    Registered User toaster's Avatar
    Join Date
    Apr 2002
    Posts
    161
    if not Borland (or compatibles), try Sunlight's tutorial:
    http://sunlightd.virtualave.net/Wind...Q.html#GUISkin)

    the tutorial includes instructions on the use of the API function:
    SetConsoleTextAttribute();
    think only with code.
    write only with source.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 01:59 PM
  2. struct question
    By caduardo21 in forum Windows Programming
    Replies: 5
    Last Post: 01-31-2005, 03:49 PM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 06:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21