Thread: Change text color in C

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User IndioDoido's Avatar
    Join Date
    Apr 2007
    Posts
    194
    hey Dave!

    I'm using Visual Studio 2005 - Windows Vista x64

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,005
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User IndioDoido's Avatar
    Join Date
    Apr 2007
    Posts
    194
    humm...
    i tryed this example, and it didn't work :-(

    Code:
    #include <stdio.h> 
    #include <conio.h> 
    
    int main ( void )
    {
      textcolor ( MAGENTA );
      cprintf ( "This is a test\n" );
    
      return 0;
    }
    ERROR: "error C2065: 'MAGENTA' : undeclared identifier"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 03:17 PM
  2. change color text?
    By k4z1nh0 in forum C Programming
    Replies: 4
    Last Post: 03-15-2005, 11:41 AM
  3. help with calculating change from a dollar
    By z.tron in forum C++ Programming
    Replies: 3
    Last Post: 09-13-2002, 03:58 PM
  4. change text
    By Unregistered in forum C Programming
    Replies: 17
    Last Post: 08-23-2002, 08:28 PM
  5. Replies: 2
    Last Post: 09-04-2001, 02:12 PM