I tried using textcolor() and textbackground() but there were problems. I did the following:

#include <iostream.h>
#include <conio.h>

void main()
{
textcolor(BLUE);
textbackground(RED);...