C语言头文件,conio.h,windows.h,string.h,math.h各有什么用? 不同的头文件有什么意义,如"stdio.h" "math.h...

C\u8bed\u8a00\uff0c"conio.h"\u5934\u6587\u4ef6\u662f\u4ec0\u4e48\uff1f\u662f\u5e72\u4ec0\u4e48\u7528\u7684\uff1f\u90fd\u6709\u4ec0\u4e48\uff1f

\u8fd9\u8c8c\u4f3c\u662f\u4e00\u4e2a\u63d0\u4f9b\u6e05\u9664\u5c4f\u5e55\u663e\u793a\u7684\u5934\u6587\u4ef6\uff0c\u4e0d\u8fc7\u8fd9\u4e0d\u662f\u4e00\u4e2ac\u7684\u6807\u51c6\u5e93\uff0c\u5de5\u4f5c\u4e0d\u7a33\u5b9a\uff0c\u6709\u65f6\u4f1a\u51fa\u9519\uff0c\u6240\u4ee5\u5f3a\u70c8\u4e0d\u63a8\u8350\u4f7f\u7528

\u5934\u6587\u4ef6\u4e5f\u662f\u7a0b\u5e8f\uff0c\u4eba\u4eec\u7f16\u7a0b\u53d1\u73b0\u6709\u5f88\u591a\u4e1c\u897f\u6bcf\u6b21\u90fd\u8981\u91cd\u590d\uff0c\u5c31\u628a\u91cd\u590d\u7684\u4e1c\u4e1c\u4e8b\u5148\u5199\u597d\u505a\u597d\u5206\u7c7b(\u5c31\u6709\u4e86stdio.h\u6807\u51c6\u8f93\u5165\u8f93\u51fa\u5934\u6587\u4ef6\uff1bmath.h\u7b97\u6570\u8fd0\u7b97\u5934\u6587\u4ef6\uff1bstring.h\u5b57\u7b26\u4e32\u5934\u6587\u4ef6\u7b49)\u3002\u7528\u5934\u6587\u4ef6\u7684\u5f62\u5f0f\u4fdd\u5b58\u3002\u4ee5\u540e\u5728\u5199\u7a0b\u5e8f\u65f6\u53d1\u73b0\u9700\u8981\u90a3\u4e9b\u5e38\u7528\u7684\u4e1c\u4e1c\u53ea\u8981\u5305\u542b\u76f8\u5e94\u7684\u5934\u6587\u4ef6\u5c31\u597d\u4e86\u3002\u7a0b\u5e8f\u5728\u7f16\u8bd1\u662f\uff0c\u7f16\u8bd1\u5668\u4f1a\u5728\u6307\u5b9a\u7684\u76ee\u5f55\u4e2d\u627e\u5230\u7a0b\u5e8f\u6240\u5305\u6db5\u7684\u5934\u6587\u4ef6\u52a0\u5230\u4e2a\u4eba\u7f16\u5199\u7684\u7a0b\u5e8f\u4e2d\u3002

conio.h不是C标准库中的头文件。 conio是Console Input/Output(控制台输入输出)的简写,其中定义了通过控制台进行数据输入和数据输出的函数,主要是一些用户通过按键盘产生的对应操作,比如getch()函数等等。
[编辑本段]包含的函数
包含的函数: cgets(char *); cprintf(const char *, ...); cputs(const char *); cscanf(const char *, ...); inp(unsigned short); inpw(unsigned short); getch(void); getche(void); kbhit(void); outp(unsigned short, int); outpw(unsigned short, unsigned short); putch(int); ungetch(int); void _Cdecl clreol (void); void _Cdecl clrscr (void); void _Cdecl delline (void); int _Cdecl gettext (int left, int top, int right, int bottom, void *destin); void _Cdecl gettextinfo (struct text_info *r); void _Cdecl gotoxy (int x, int y); void _Cdecl highvideo (void); void _Cdecl insline (void); void _Cdecl lowvideo (void); int _Cdecl movetext (int left, int top, int right, int bottom, int destleft, int desttop); void _Cdecl normvideo (void); int _Cdecl puttext (int left, int top, int right, int bottom, void *source); void _Cdecl textattr (int newattr); void _Cdecl textbackground (int newcolor); void _Cdecl textcolor (int newcolor); void _Cdecl textmode (int newmode); int _Cdecl wherex (void); int _Cdecl wherey (void); void _Cdecl window (int left, int top, int right, int bottom); har *_Cdecl cgets (char *str); int _Cdecl cprintf (const char *format, ...); int _Cdecl cputs (const char *str); int _Cdecl cscanf (const char *format, ...); int _Cdecl getch (void); int _Cdecl getche (void); char *_Cdecl getpass (const char *prompt); int _Cdecl kbhit (void); int _Cdecl putch (int c); int _Cdecl ungetch (int ch);

windows.h

Windows程序的开头都可看到: #include <windows.h> WINDOWS.H是主要的头文件,它包含了其他Windows头文件,这些头文件的某些也包含了其他头文件。这些头文件中最重要的和最基本的是: WINDEF.H 基本型态定义。 WINNT.H 支援Unicode的型态定义。 WINBASE.H Kernel函数。 WINUSER.H 使用者介面函数。 WINGDI.H 图形装置介面函数。 这些头文件定义了Windows的所有资料型态、函数调用、资料结构和常数识别字,它们是Windows文件中的一个重要部分。
[编辑本段]文件内容
/*++ BUILD Version: 0001 Increment this if a change has global effects Copyright (c) Microsoft Corporation. All rights reserved. Module Name: windows.h Abstract: Master include file for Windows applications. --*/ #ifndef _WINDOWS_ #define _WINDOWS_ #ifdef __BORLANDC__ #pragma defineonoption __BOROPT_A -A #pragma defineonoption __BOROPT_H -H #if (__BORLANDC__ == 0x550) && defined(__BOROPT_A) && defined(__BOROPT_H) #error The use of both -A (ANSI mode) and -H (pre-compiled headers) at the same time is unsupported. #endif #endif /* __BORLANDC__ */ #pragma option push -b -a8 -pc -A- /*P_O_Push*/ #ifndef WINVER #define WINVER 0x0501 #else #if defined(_WIN32_WINNT) && (WINVER < 0x0400) && (_WIN32_WINNT > 0x0400) #error WINVER setting conflicts with _WIN32_WINNT setting #endif #endif #ifndef _INC_WINDOWS #define _INC_WINDOWS #if defined (_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif /* If defined, the following flags inhibit definition * of the indicated items. * * NOGDICAPMASKS - CC_*, LC_*, PC_*, CP_*, TC_*, RC_ * NOVIRTUALKEYCODES - VK_* * NOWINMESSAGES - WM_*, EM_*, LB_*, CB_* * NOWINSTYLES - WS_*, CS_*, ES_*, LBS_*, SBS_*, CBS_* * NOSYSMETRICS - SM_* * NOMENUS - MF_* * NOICONS - IDI_* * NOKEYSTATES - MK_* * NOSYSCOMMANDS - SC_* * NORASTEROPS - Binary and Tertiary raster ops * NOSHOWWINDOW - SW_* * OEMRESOURCE - OEM Resource values * NOATOM - Atom Manager routines * NOCLIPBOARD - Clipboard routines * NOCOLOR - Screen colors * NOCTLMGR - Control and Dialog routines * NODRAWTEXT - DrawText() and DT_* * NOGDI - All GDI defines and routines * NOKERNEL - All KERNEL defines and routines * NOUSER - All USER defines and routines * NONLS - All NLS defines and routines * NOMB - MB_* and MessageBox() * NOMEMMGR - GMEM_*, LMEM_*, GHND, LHND, associated routines * NOMETAFILE - typedef METAFILEPICT * NOMINMAX - Macros min(a,b) and max(a,b) * NOMSG - typedef MSG and associated routines * NOOPENFILE - OpenFile(), OemToAnsi, AnsiToOem, and OF_* * NOSCROLL - SB_* and scrolling routines * NOSERVICE - All Service Controller routines, SERVICE_ equates, etc. * NOSOUND - Sound driver routines * NOTEXTMETRIC - typedef TEXTMETRIC and associated routines * NOWH - SetWindowsHook and WH_* * NOWINOFFSETS - GWL_*, GCL_*, associated routines * NOCOMM - COMM driver routines * NOKANJI - Kanji support stuff. * NOHELP - Help engine interface. * NOPROFILER - Profiler interface. * NODEFERWINDOWPOS - DeferWindowPos routines * NOMCX - Modem Configuration Extensions */ #if defined(RC_INVOKED) && !defined(NOWINRES) #include <winresrc.h> #else #if defined(RC_INVOKED) /* Turn off a bunch of stuff to ensure that RC files compile OK. */ #define NOATOM #define NOGDI #define NOGDICAPMASKS #define NOMETAFILE #define NOMINMAX #define NOMSG #define NOOPENFILE #define NORASTEROPS #define NOSCROLL #define NOSOUND #define NOSYSMETRICS #define NOTEXTMETRIC #define NOWH #define NOCOMM #define NOKANJI #define NOCRYPT #define NOMCX #endif #if defined(__BORLANDC__) && defined(__cplusplus) # include <mem.h> // Needed for protos of memxxx() routines #endif #if defined(__BORLANDC__) # ifndef _WIN32_WINNT # define _WIN32_WINNT 0x0500 /* If not set, assume NT 5.00 */ # endif # if defined(__cplusplus) # define NOMINMAX /* for WINDEF.H */ # else # define NONAMELESSUNION /* for OAIDL.H, OBJIDL.H,... */ # endif # if defined(_UNICODE) # define UNICODE # endif #endif #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_IX86) #define _X86_ #endif #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_AMD64) #define _AMD64_ #endif #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_M68K) #define _68K_ #endif #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_IA64_) && !defined(_AMD64_) && defined(_M_MPPC) #define _MPPC_ #endif #if !defined(_68K_) && !defined(_MPPC_) && !defined(_X86_) && !defined(_M_IX86) && !defined(_AMD64_) && defined(_M_IA64) #if !defined(_IA64_) #define _IA64_ #endif // !_IA64_ #endif #ifndef _MAC #if defined(_68K_) || defined(_MPPC_) #define _MAC #endif #endif #if defined (_MSC_VER) #if ( _MSC_VER >= 800 ) #ifndef __cplusplus #pragma warning(disable:4116) // TYPE_ALIGNMENT generates this - move it // outside the warning push/pop scope. #endif #endif #endif #ifndef RC_INVOKED #if ( _MSC_VER >= 800 ) || defined(__BORLANDC__) #pragma warning(disable:4514) #ifndef __WINDOWS_DONT_DISABLE_PRAGMA_PACK_WARNING__ #pragma warning(disable:4103) #endif #if _MSC_VER >= 1200 #pragma warning(push) #endif #pragma warning(disable:4001) #pragma warning(disable:4201) #pragma warning(disable:4214) #endif #include <excpt.h> #include <stdarg.h> #endif /* RC_INVOKED */ #include <windef.h> #include <winbase.h> #include <wingdi.h> #include <winuser.h> #if !defined(_MAC) || defined(_WIN32NLS) #include <winnls.h> #endif #ifndef _MAC #include <wincon.h> #include <winver.h> #endif #if !defined(_MAC) || defined(_WIN32REG) #include <winreg.h> #endif #ifndef _MAC #include <winnetwk.h> #endif #ifndef WIN32_LEAN_AND_MEAN #include <cderr.h> #include <dde.h> #include <ddeml.h> #include <dlgs.h> #ifndef _MAC #include <lzexpand.h> #include <mmsystem.h> #include <nb30.h> #include <rpc.h> #endif #include <shellapi.h> #ifndef _MAC #include <winperf.h> #include <winsock.h> #endif #ifndef NOCRYPT #include <wincrypt.h> #include <winefs.h> #include <winscard.h> #endif #ifndef NOGDI #ifndef _MAC #include <winspool.h> #ifdef INC_OLE1 #include <ole.h> #else #include <ole2.h> #endif /* !INC_OLE1 */ #endif /* !MAC */ #include <commdlg.h> #endif /* !NOGDI */ #endif /* WIN32_LEAN_AND_MEAN */ #include <stralign.h> #ifdef _MAC #include <winwlm.h> #endif #ifdef INC_OLE2 #include <ole2.h> #endif /* INC_OLE2 */ #ifndef _MAC #ifndef NOSERVICE #include <winsvc.h> #endif #if(WINVER >= 0x0400) #ifndef NOMCX #include <mcx.h> #endif /* NOMCX */ #ifndef NOIME #include <imm.h> #endif #endif /* WINVER >= 0x0400 */ #endif #ifndef RC_INVOKED #if ( _MSC_VER >= 800 ) || defined(__BORLANDC__) #if _MSC_VER >= 1200 #pragma warning(pop) #else #pragma warning(default:4001) #pragma warning(default:4201) #pragma warning(default:4214) /* Leave 4514 disabled. It's an unneeded warning anyway. */ #endif #endif #endif /* RC_INVOKED */ #endif /* RC_INVOKED */ #endif /* _INC_WINDOWS */ #pragma option pop /*P_O_Pop*/ #endif /* _WINDOWS_ */

string.h

C语言里面关于字符数组的函数定义的头文件,常用函数有strlen、strcmp、strcpy等等,更详细的可以到include文件夹里面查看该文件。 下面更详细的介绍下: /***********************************************************************/ C、传统 C++ #include <assert.h> //设定插入点 #include <ctype.h> //字符处理 #include <errno.h> //定义错误码 #include <float.h> //浮点数处理 #include <fstream.h> //文件输入/输出 #include <iomanip.h> //参数化输入/输出 #include <iostream.h> //数据流输入/输出 #include <limits.h> //定义各种数据类型最值常量 #include <locale.h> //定义本地化函数 #include <math.h> //定义数学函数 #include <stdio.h> //定义输入/输出函数 #include <stdlib.h> //定义杂项函数及内存分配函数 #include <string.h> //字符串处理 #include <strstrea.h> //基于数组的输入/输出 #include <time.h> //定义关于时间的函数 #include <wchar.h> //宽字符处理及输入/输出 #include <wctype.h> //宽字符分类 /***********************************************************************/ 标准 C++ (同上的不再注释) #include <algorithm> //STL 通用算法 #include <bitset> //STL 位集容器 #include <cctype> #include <cerrno> #include <clocale> #include <cmath> #include <complex> //复数类 #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <deque> //STL 双端队列容器 #include <exception> //异常处理类 #include <fstream> #include <functional> //STL 定义运算函数(代替运算符) #include <limits> #include <list> //STL 线性列表容器 #include <map> //STL 映射容器 #include <iomanip> #include <ios> //基本输入/输出支持 #include <iosfwd> //输入/输出系统使用的前置声明 #include <iostream> #include <istream> //基本输入流 #include <ostream> //基本输出流 #include <queue> //STL 队列容器 #include <set> //STL 集合容器 #include <sstream> //基于字符串的流 #include <stack> //STL 堆栈容器 #include <stdexcept> //标准异常类 #include <streambuf> //底层输入/输出支持 #include <string> //字符串类 #include <utility> //STL 通用模板类 #include <vector> //STL 动态数组容器 #include <cwchar> #include <cwctype> using namespace std; /***********************************************************************/ C99 增加 #include <complex.h> //复数处理 #include <fenv.h> //浮点环境 #include <inttypes.h> //整数格式转换 #include <stdbool.h> //布尔环境 #include <stdint.h> //整型环境 #include <tgmath.h> //通用类型数学宏 /***********************************************************************/

math.h

数学函数库,一些数学计算的公式的具体实现是放在math.h里,具体有: 1 三角函数 double sin (double); double cos (double); double tan (double); 2 反三角函数 double asin (double); 结果介于[-PI/2, PI/2] double acos (double); 结果介于[0, PI] double atan (double); 反正切(主值), 结果介于[-PI/2, PI/2] double atan2 (double, double); 反正切(整圆值), 结果介于[-PI/2, PI/2] 3 双曲三角函数 double sinh (double); double cosh (double); double tanh (double); 4 指数与对数 double exp (double); double sqrt (double); double log (double); 以e为底的对数 double log10 (double); double pow(double x, double y)//计算以x为底数的y次幂 5 取整 double ceil (double); 取上整 double floor (double); 取下整 6 绝对值 double fabs (double); double cabs(struct complex znum) //求复数的绝对值 7 标准化浮点数 double frexp (double f, int *p); 标准化浮点数, f = x * 2^p, 已知f求x, p ( x介于[0.5, 1] ) double ldexp (double x, int p); 与frexp相反, 已知x, p求f 8 取整与取余 double modf (double, double*); 将参数的整数部分通过指针回传, 返回小数部分 double fmod (double, double); 返回两参数相除的余数 9其他 double hypot(double x, double y);//已知直角三角形两个直角边长度,求斜边长度 double ldexp(double x, int exponent);//计算x*(2的exponent次幂) double poly(double x, int degree, double coeffs [] )//计算多项式 nt matherr(struct exception *e)//数学错误计算处理程序 source: 《C & C++ Code Capsules》

conio.h 不是C标准库中的头文件。主要是一些用户通过按键盘产生的对应操作,比如getch()函数等等

windows.h 是主要的头文件,它包含了其他Windows头文件,这些头文件的某些也包含了其他头文件。这些头文件中最重要的和最基本的是:
WINDEF.H 基本型态定义。
WINNT.H 支援Unicode的型态定义。
WINBASE.H Kernel函数。
WINUSER.H 使用者介面函数。
WINGDI.H 图形装置介面函数。
这些头文件定义了Windows的所有资料型态、函数调用、资料结构和常数识别字,它们是Windows文件中的一个重要部分。

string.h

C语言里面关于字符数组的函数定义的头文件,常用函数有strlen、strcmp、strcpy等等,更详细的可以到include文件夹里面查看该文件。

math.h

数学函数库,一些数学计算的公式的具体实现是放在math.h里,具体有:
1 三角函数
double sin (double);
double cos (double);
double tan (double);
2 反三角函数
double asin (double); 结果介于[-PI/2, PI/2]
double acos (double); 结果介于[0, PI]
double atan (double); 反正切(主值), 结果介于[-PI/2, PI/2]
double atan2 (double, double); 反正切(整圆值), 结果介于[-PI/2, PI/2]
3 双曲三角函数
double sinh (double);
double cosh (double);
double tanh (double);
4 指数与对数
double exp (double);
double sqrt (double);
double log (double); 以e为底的对数
double log10 (double);
double pow(double x, double y)//计算以x为底数的y次幂
5 取整
double ceil (double); 取上整
double floor (double); 取下整
6 绝对值
double fabs (double);
double cabs(struct complex znum) //求复数的绝对值
7 标准化浮点数
double frexp (double f, int *p); 标准化浮点数, f = x * 2^p, 已知f求x, p ( x介于[0.5, 1] )
double ldexp (double x, int p); 与frexp相反, 已知x, p求f
8 取整与取余
double modf (double, double*); 将参数的整数部分通过指针回传, 返回小数部分
double fmod (double, double); 返回两参数相除的余数
9其他
double hypot(double x, double y);//已知直角三角形两个直角边长度,求斜边长度
double ldexp(double x, int exponent);//计算x*(2的exponent次幂)
double poly(double x, int degree, double coeffs [] )//计算多项式
nt matherr(struct exception *e)//数学错误计算处理程序
source: 《C & C++ Code Capsules》

conio.h,windows.h不是标准库的
string.h math.h是标准库中的

string.h主要提供处理字符串的一些函数
math.h主要提供一些数学函数

windows.h提供windows编程的接口,头文件等
conio.h 提供控制台输入输出的一些函数

  • #include"conio.h"鍦C璇█涓槸浠涔堟剰鎬?
    绛旓細conio.h鏄竴涓狢鏍囧噯搴撲腑鐨澶存枃浠銆俢onio鏄疌onsole Input/Output锛堟帶鍒跺彴杈撳叆杈撳嚭锛夌殑绠鍐欙紝鍏朵腑瀹氫箟浜嗛氳繃鎺у埗鍙拌繘琛屾暟鎹緭鍏ュ拰鏁版嵁杈撳嚭鐨勫嚱鏁帮紝涓昏鏄竴浜涚敤鎴烽氳繃鎸夐敭鐩樹骇鐢熺殑瀵瑰簲鎿嶄綔锛屾瘮濡俫etch()鍑芥暟绛夌瓑銆
  • c璇█澶存枃浠禼onio.h
    绛旓細conio.h鏄竴涓狢鏍囧噯搴撲腑鐨澶存枃浠銆俢onio鏄疌onsole Input/Output锛堟帶鍒跺彴杈撳叆杈撳嚭锛夌殑绠鍐欙紝鍏朵腑瀹氫箟浜嗛氳繃鎺у埗鍙拌繘琛屾暟鎹緭鍏ュ拰鏁版嵁杈撳嚭鐨勫嚱鏁帮紝涓昏鏄竴浜涚敤鎴烽氳繃鎸夐敭鐩樹骇鐢熺殑瀵瑰簲鎿嶄綔锛屾瘮濡俫etch()鍑芥暟绛夌瓑銆
  • conio鍑芥暟conioh
    绛旓細1銆佸寘鍚竴涓澶存枃浠 conio.h锛杩欐牱灏卞彲浠ヤ娇鐢ㄥ畠閲岄潰澹版槑鐨勫嚱鏁颁簡锛屼篃鏄澶勭悊鍛戒护锛岃〃绀虹▼搴忓寘鍚玞onio.h搴鏂囦欢conio.h搴撴枃浠跺畾涔変簡閫氳繃鎺у埗鍙拌繘琛屾暟鎹緭鍏ュ拰鏁版嵁杈撳嚭鐨勫嚱鏁般2銆佷富瑕佹槸涓浜涚敤鎴烽氳繃鎸夐敭鐩樹骇鐢熺殑瀵瑰簲鎿嶄綔銆3銆佹瘮濡傚父鐢ㄧ殑getch()鍑芥暟灏辨槸鍦ㄨ繖涓ご鏂囦欢閲屽畾涔夌殑銆4銆乧onio搴撲笉浠呴傜敤浜 ...
  • 鍦–++涓#include <conio.h>鏄粈涔堟剰鎬
    绛旓細conio.h涓嶆槸C鏍囧噯搴撲腑鐨澶存枃浠讹紝鏄痸c涓嬬殑涓涓ご鏂囦欢銆俢onio鏄疌onsole Input/Output锛堟帶鍒跺彴杈撳叆杈撳嚭锛夌殑绠鍐欙紝鍏朵腑瀹氫箟浜嗛氳繃鎺у埗鍙拌繘琛屾暟鎹緭鍏ュ拰鏁版嵁杈撳嚭鐨勫嚱鏁帮紝涓昏鏄竴浜涚敤鎴烽氳繃鎸夐敭鐩樹骇鐢熺殑瀵瑰簲鎿嶄綔锛屾瘮濡俫etch()鍑芥暟绛夌瓑銆傚湪C++涓#include <conio.h>绠鍗曡灏辨槸鈥滈氱敤杈撳叆杈撳嚭搴撯濓紝涓昏鏄枃浠跺拰...
  • C璇█涔#include<conio.h>琛ㄧず浠涔
    绛旓細琛ㄧず鍖呭惈conio.h杩欎釜澶存枃浠,浣犲彲浠ヨ繍鐢ㄩ噷闈㈢殑鍑芥暟,濡傛灉寮鍙戝钩鍙扮紪璇戠殑鏃跺欒嚜鍔ㄥ寘鍚繖涓ご鏂囦欢,閭d箞灏卞彲浠ョ渷涓#include<conio.h>杩欎竴姝ヤ簡 瑕佺敤棰勭紪璇戝懡浠"#include"灏嗘湁鍏崇殑"澶存枃浠"鍖呮嫭鍒扮敤鎴锋簮鏂囦欢涓.鍦ㄥご鏂囦欢涓寘鍚浗涓庣敤鍒扮殑鍑芥暟鏈夊叧鐨勪俊鎭."conio.h"鍑芥暟搴撴枃浠.include<conio.h>鏄寘鍚繖涓ご...
  • c璇█涓,浠涔堟椂鍊欑敤<conio.h>
    绛旓細conio.h con -- 鎺у埗鍙 console io -- 杈撳叆杈撳嚭锛宨mport ,output .h -- 澶存枃浠 閬囧埌浣跨敤 鎺у埗鍙拌緭鍏ヨ緭鍑 绯荤粺鍑芥暟鏃 闇瑕佽繖涓ご鏂囦欢銆備緥濡 涓嬪垪鍑芥暟锛歘getch(void);_getche(void);_kbhit(void);_putch(int);_ungetch(int);_cprintf(const char *, ...);_cputs(const char *);_cscanf(...
  • c璇█涓#include"conio.h"#include"string.h"#include"stdlib.h...
    绛旓細include"stdlib.h"鏄氱敤宸ュ叿搴擄紝#include"string.h鈥滄槸瀛楃涓插鐞嗗簱锛#include"conio.h"杩欎釜灏变笉鐭ラ亾浜
  • C璇█澶存枃浠,conio.h,windows.h,string.h,math.h鍚勬湁浠涔堢敤?
    绛旓細鐢变簬瀹冧滑鐨勫瓨鍦紝鎵浠ヤ娇鎴戜滑缂栫▼鏃朵竴浜涘嚱鏁颁笉蹇呰嚜宸辩紪鍐欙紝姣斿printf,system绛夊嚱鏁帮紝杩欐牱姣旇緝鏂逛究锛佷笉鍚澶存枃浠鍐呯殑鍑芥暟澹版槑鐨勭被鍨嬩笉鍚岋紝渚嬪conio.h灏辨槸console input output .head.鑲畾灏辨槸闇瑕佸缁堢鎿嶄綔鐨勪竴浜涘嚱鏁板湪杩欓噷锛屽叾瀹冪殑鍙互鑷繁鏌ョ湅锛屽缓璁ゼ涓诲湪linux涓媘an 涓涓嬪悇涓簱锛岄偅鏍蜂細姣旇緝鏉冨▉锛
  • C璇█缂栫▼,#include "conio.h"浠涔堟剰鎬?
    绛旓細TC鐗规湁鐨澶存枃浠讹紝鍖呮嫭涓浜涘睆骞曠粯鍥炬搷浣滃嚱鏁般
  • C璇█涓<conio.h>鏄共浠涔堢敤鐨,鑳藉叿浣撹В閲婁竴涓嬪悧
    绛旓細conio.h 涓嶆槸鏍囧噯C璇█鐨勪竴閮ㄥ垎锛屼笉鎺ㄨ崘浣跨敤 鍚嶇О涓婂緢娓呮锛宑on = console 鎺у埗鍙 io = input / output 杈撳叆杈撳嚭 .h = C璇█澶存枃浠 锛堝寘鍚竴浜涘嚱鏁般佸父閲忋佺粨鏋勪綋鐨勫畾涔夛級閲岄潰鎵瀹氫箟鐨勫嚱鏁颁富瑕佹槸鏄敤鏉ュ拰鎺у埗鍙颁氦浜掔殑锛屾瘮濡傜Щ鍔ㄥ厜鏍囷紝鎵撳嵃瀛楃锛岃幏鍙栭敭鐩樿緭鍏ャ
  • 扩展阅读:c++常用头文件大全 ... c++教程 ... c++的头文件一般怎么写 ... c语言conioh头文件介绍 ... c++万能头文件怎么写 ... c语言头文件conio h作用 ... c++头文件iostream ... c语言system cls ... c语言头文件大全及解释 ...

    本站交流只代表网友个人观点,与本站立场无关
    欢迎反馈与建议,请联系电邮
    2024© 车视网