标签:style blog color io for div new amp
#include <Windows.h> #include <stdio.h> int main() { HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE); WORD wOldColorAttrs; CONSOLE_SCREEN_BUFFER_INFO csbiInfo; /* * First save the current color information */ GetConsoleScreenBufferInfo(h, &csbiInfo); wOldColorAttrs = csbiInfo.wAttributes; /* * Set the new color information */ SetConsoleTextAttribute(h, FOREGROUND_RED | FOREGROUND_INTENSITY); printf("This is a test\n"); /* * Restore the original colors */ SetConsoleTextAttribute(h, wOldColorAttrs); }
标签:style blog color io for div new amp
原文地址:http://www.cnblogs.com/emyueguang/p/3877307.html