I had a programming class assignment to make a simple guessing game ( we're just starting out programming in C) and I read this code that changes the color of the console:
I know what each bit does, but I would like to know what the WORD datatype / structure is? ( sorry if I'm not using the correct terminology, I'm just beginning programming, and it's really fun )Code:HANDLE mainwin = GetStdHandle ( STD_OUTPUT_HANDLE ); WORD DefaultColor; CONSOLE_SCREEN_BUFFER_INFO csbiInfo; GetConsoleScreenBufferInfo(mainwin, &csbiInfo); DefaultColor = csbiInfo.wAttributes;
Thanks alot for the help