C/C++の宿題を片付けます 57代目
■ このスレッドは過去ログ倉庫に格納されています
0628デフォルトの名無しさん
2006/01/15(日) 15:20:49long __stdcall SetConsoleTextAttribute(long, long);
long __stdcall SetConsoleCursorPosition(long, long);
typedef enum {
black, dblue, dgreen, dcyan, dred, dmagenta, dyellow, gray,
dgray, blue, green, cyan, red, magenta, yellow, white,
} color;
void cursor(long h, int y, int x)
{
SetConsoleCursorPosition(h, (y << 16) | (x & 0x0000FFFF));
}
void conattr(long h, char bg, char fg)
{
SetConsoleTextAttribute(h, (bg << 4) | (fg & 0x0F));
}
void cls(long h, int t, int b, int l, int r, char c)
{
int i, j;
for(j = t; j < b; j++) for(i = l; i < r; i++) cursor(h, j, i), putch(c);
}
void beep(void)
{
putch('\a');
}
■ このスレッドは過去ログ倉庫に格納されています