How do i change backround color and text color?
Well i found 1 way to change back round and text color but im running into problems doing it
Code:
#include <iostream>
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include "game.cpp"
using namespace std;
int main()
{
char choice;
Sleep(100);
printf("\n");
system("Color 60");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 6);
printf("\t\t\t By Nathan of awsometon\n");
Sleep(100);
printf("\n");
Sleep(100);
printf("\n");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 4);
printf("\t\t\t [N]ew Game\n");
printf("\t\t\t [Q]uit\n");
Sleep(100);
printf("\n");
Sleep(100);
printf("\n");
Sleep(100);
printf("\n");
Sleep(100);
printf("\n");
choice=toupper(getch());
for(;;)
But whenever i choose a number like 56 in the text attribute it changes the backround color in the blank spaces of the line were the text is how would i fix this also?