View Poll Results: how do i cout a color

Voters
6. You may not vote on this poll
  • i need an example

    2 33.33%
  • and the header file and the function plz

    4 66.67%

Thread: color cout..

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    4

    Question color cout..

    plz i need to know the header file and the function that changes the color of what i cout on the screen
    p.s plz send an example
    10x


    ------------------------------
    msvc++ 6.0
    Last edited by aboulchouch; 06-05-2002 at 10:01 AM.

  2. #2
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    oh boy... you need to learn how to post.

    First of all... always tell what compiler your using...
    and dont use polls until you know what they are!

    Code:
    #include <iostream.h>
    #include <conio.c>
    
    int main()
    {
        textcolor ( BLUE );
        cout << "This will be blue"
    
        cin.get();
        return 0;
    }
    That will work with Dev-C++ wich im guessin you have.

    Also use the search.
    What is C++?

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    479
    nice poll ¤%&%!!!!????

  4. #4
    Registered User
    Join Date
    Jun 2002
    Posts
    29
    I think you have some mistakes in your code:
    ** #include <conio.c>
    What is conio.c ??

    And here in your code you don't have a semicolon:

    ** cout << "This will be blue"

    And also on Borland C++ 3.1 it is not working.. the output from cout is white..

    btw. how I can use words of someone who writes it before me?
    (I can use ^C and then ^V in windows clipboard, but I think that it's some another way..

  5. #5
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680
    Originally posted by mazo
    And also on Borland C++ 3.1 it is not working.. the output from cout is white..
    Read the post of Vicious again:
    Originally posted by Vicious
    That will work with Dev-C++ wich im guessin you have.
    Didn't he just tell you it worked with Dev-C++ ???

Popular pages Recent additions subscribe to a feed