搜索
楼主: 李掌柜
打印 上一主题 下一主题

一些C语言资料---电子书

  [复制链接]
楼主
发表于 2015-2-14 09:51:50 | 显示全部楼层
【程序33】
题目:学习gotoxy()与clrscr()函数   
1.程序分析:
2.程序源代码:

#include 

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");

}

这是TC?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

广播台
特别关注
快速回复 返回顶部 返回列表