-
Color in Dos
I want to give this DOS code more color but how ? :confused:
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);
}
-
Don't start a new thread if your question isn't answered immediately.