Color in Dos

This is a discussion on Color in Dos within the C++ Programming forums, part of the General Programming Boards category; I want to give this DOS code more color but how ? code: // C++ #include <iostream.h> #include <string.h> #include ...

  1. #1
    Registered User
    Join Date
    Apr 2004
    Posts
    9

    Color in Dos

    I want to give this DOS code more color but how ?

    code:

    // C++

    #include <iostream.h>
    #include <string.h>
    #include <stdlib.h>

    void main()
    {
    char buffer[10];
    char b;

    cout << "\n\nType a word: " << endl;
    cout << "\n:";
    cin.getline(buffer, 10);

    if ( strcmp ( buffer, "hallo" ) == 0 )
    cout << "The typed word is the same as the embeded word in this program.\n\n";
    else
    cout << "The typed word is not the same as the embeded word in this program.\n\n";

    cout << "\nTyped word: " << buffer << endl;
    cout << "\n\nEnter to Exit.\n";

    cin.get(b);
    }

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Don't start a new thread if your question isn't answered immediately.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File systems?? (Winxp -> DOS)
    By Shadow in forum Tech Board
    Replies: 4
    Last Post: 01-06-2003, 09:08 PM
  2. winver, winminor, winmajor can it be found from dos?
    By ronin in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-02-2002, 11:32 AM
  3. real mode dos & win dos
    By scott27349 in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-19-2002, 07:15 AM
  4. DOS program versus DOS console program
    By scromer in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 01-10-2002, 01:42 PM
  5. Shut off DOS screen automatically to Windows
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 11-08-2001, 07:14 PM

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