2010-12-01から1日間の記事一覧
#include #include void main( ) { HANDLE hStd = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hStd,0xc); // これ以降、赤(強調)表示 printf("ABC\n"); SetConsoleTextAttribute(hStd,0x7); // これ以降、白表示 printf("ABC\n"); }4=赤、…
#include #include void main( ) { HANDLE hStd = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hStd,0xc); // これ以降、赤(強調)表示 printf("ABC\n"); SetConsoleTextAttribute(hStd,0x7); // これ以降、白表示 printf("ABC\n"); }4=赤、…