Thread: back...

  1. #1
    Registered User
    Join Date
    Mar 2003

    Question back...

    i'm running a dev++ and i can't figure out y the background isn't fully covered with blue y and how to change?

    int choice,x;
    printf("****************************************** *************************************\n");
    printf("\6\t\t \t\t \6\n");
    printf("\3\t 1.\t Resistor Value -> Colour Code \t\t \3\n");
    printf("\6\t\t \t\t \6\n");
    printf("\3\t 2.\t Colour Code -> Resistor Value \t\t \3\n");
    printf("\6\t\t \t\t \6\n");
    printf("\3\t 3.\t Store Resistor Values \t\t \3\n");
    printf("\6\t\t \t\t \6\n");
    printf("\3\t 4.\t Recorded Resistor Values \t\t \3\n");
    printf("\6\t\t \t\t \6\n");
    printf("\3\t 5.\t Quit \t\t \3\n");
    printf("\6\t\t \t\t \6\n");
    printf("****************************************** *************************************\n\n");
    printf("Please enter a choice : ");

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Read this.

    This belongs in the DOS (or C) programming forum.


  3. #3
    Registered User
    Join Date
    Mar 2003
    ..Yeah, you should really use code tags. But any rate, the color procedure you used isn't working on my computer at all. To easily use colors in DOS C++ you can simply use a system command:
    system("color 4A"); //red and green
    See, it's in hexdecimal (0-9 and A-F). The first color is the background and the second color is the foreground. Hope that helps.

    (oh, btw.. You forgot to include the end of your DO-WHILE loop in your code snippet! )

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. "if you love someone" :D
    By Carlos in forum A Brief History of
    Replies: 12
    Last Post: 10-02-2003, 01:10 AM
  2. UInt to CString and back
    By xlnk in forum Windows Programming
    Replies: 6
    Last Post: 08-27-2003, 03:08 PM
  3. Some woman back ended my car today, and back hurts
    By Terrance in forum A Brief History of
    Replies: 19
    Last Post: 08-20-2003, 12:42 AM
  4. Returning a Tree node back to void main()
    By gazza in forum C++ Programming
    Replies: 2
    Last Post: 07-07-2002, 02:48 AM
  5. I am back!
    By Betazep in forum A Brief History of
    Replies: 19
    Last Post: 03-02-2002, 06:22 PM