#include <stdio.h>?#include <conio.h>?int main()?{?int i;?textbackground(0); /* 設置屏幕背景色,待clrscr 后起作用 */?clrscr(); /* 清除文本屏幕 */?for(i=1; i<8; i++)?{ ?window(10+i*5, 5+i, 30+i*5, 15+i); /* 定義文本窗口 */?textbackground(i); /* 定義窗口背景色 */?clrscr(); /* 清除窗口 */?}?getch();?return 0;?}
- 2 回答
- 0 關注
- 1764 瀏覽
添加回答
舉報
0/150
提交
取消