鱼C论坛

 找回密码
 立即注册
查看: 4189|回复: 1

conio.h 该怎么解决?

[复制链接]
发表于 2013-1-5 16:39:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
#include <conio.h>
#include <stdio.h>
#include <stdlib.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");
}

#include <conio.h>
#include <stdio.h>
#include <stdlib.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");
}
codeblocks编译时找不到函数clrscr()等,求解,求全的conio.h
小甲鱼最新课程 -> https://ilovefishc.com
发表于 2013-1-9 12:26:04 | 显示全部楼层
这个vc中没有,只有tc中有。你用的codeblocks估计也没有。我用的是vc++。你说的这些功能在我的编译器中是要通过windows.h中其他函数实现的。比如你的gotoxy,vc中用的是SetConsoleCursorPosition函数。你硬要这么使用建议使用tc编译器
小甲鱼最新课程 -> https://ilovefishc.com
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-8-9 16:21

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表