dev c语言清屏函数,Devc++中清屏函数为什么不行?

这篇博客详细介绍了_mingw-runtime_包中的_conio.h_头文件,列出了包含的函数如_cgets_, _cprintf_, _kbhit_等,强调了尽量使用ANSI标准函数的建议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

原来这个头文件中没有这个函数,那我用DEV的话怎样清屏?

/*

* conio.h

* This file has no copyright assigned and is placed in the Public Domain.

* This file is a part of the mingw-runtime package.

* No warranty is given; refer to the file DISCLAIMER within the package.

*

* Low level console I/O functions. Pretty please try to use the ANSI

* standard ones if you are writing new code.

*

*/

#ifndef_CONIO_H_

#define_CONIO_H_

/* All the headers include this file. */

#include <_mingw.h>

#ifndef RC_INVOKED

#ifdef__cplusplus

extern "C" {

#endif

_CRTIMP char* __cdecl_cgets (char*);

_CRTIMP int __cdecl_cprintf (const char*, ...);

_CRTIMP int __cdecl_cputs (const char*);

_CRTIMP int __cdecl_cscanf (char*, ...);

_CRTIMP int __cdecl_getch (void);

_CRTIMP int __cdecl_getche (void);

_CRTIMP int __cdecl_kbhit (void);

_CRTIMP int __cdecl_putch (int);

_CRTIMP int __cdecl_ungetch (int);

#ifndef_NO_OLDNAMES

_CRTIMP int __cdeclgetch (void);

_CRTIMP int __cdeclgetche (void);

_CRTIMP int __cdeclkbhit (void);

_CRTIMP int __cdeclputch (int);

_CRTIMP int __cdeclungetch (int);

#endif/* Not _NO_OLDNAMES */

#ifdef__cplusplus

}

#endif

#endif/* Not RC_INVOKED */

#endif/* Not _CONIO_H_ */

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值