//学习gotoxy()与clrscr()函数
//程序分析
//程序源代码
#include <conio.h>
void main()
{
clrscr();/*清屏函数*/
textbackground(2);
gotoxy(1,5);/*定位函数*/
cprintf("Output at raw 5 column 1\n");
textbackground(3);
gotoxy(20,10);
cprintf("Output at raw 10 column 20\n");
return 0;
}
//程序分析
//程序源代码
#include <conio.h>
void main()
{
clrscr();/*清屏函数*/
textbackground(2);
gotoxy(1,5);/*定位函数*/
cprintf("Output at raw 5 column 1\n");
textbackground(3);
gotoxy(20,10);
cprintf("Output at raw 10 column 20\n");
return 0;
}