2009年9月全国计算机等级考试二级C语言程序设计题(33)
来源:优易学  2011-7-30 16:15:31   【优易学:中国教育考试门户网】   资料下载   IT书店
题目:学习gotoxy()与clrscr()函数
  1.程序分析:
  2.程序源代码:
  #include <conio.h>
  void main(void)
  {
  clrscr();/*清屏函数*/
  textbackground(2);
  gotoxy(1, 5);/*定位函数*/
  cprintf("Output at row 5 column 1\n");
  textbackground(3);
  gotoxy(20, 10);
  cprintf("Output at row 10 column 20\n");
  }

责任编辑:小草

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训