console.h,console.cpp有什么用

console.h,console.cpp有什么用,第1张

一虚衡般是控制台程序的头文件和源文件。

console.h 不是vc标差姿做准头文件,一般是自己写册做的。

若不知道你的工程长什么样别人也不知道这两个文件什么用。

将conio.h包含入你的程序,使你可以引用其中声明的函数。岁凳

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)

conio.h是Console

Input/皮或Output(控制台输入输出)的简写,其中定义了通过控制台进行数据输入和数据输出隐埋的函数,主要是一些用户通过按键盘产生的对应 *** 作,比如getch()函数等等。conio.h不是C标准库中的头文件

 WINDOWS.H是主要的头文件,它包含了其他Windows头文件,这些头文件的某些也包含了其他头文件。这些头文件中最重要的和最基本的是:WINDEF.H

基本型态定义。WINNT.H

支援Unicode的型态定义。WINBASE.H

Kernel函数。WINUSER.H

使用者介面函数。WINGDI.H

图形装置介面函数。这些头文件定义了Windows的所有资料型态、函数调用、资料结构和常数识别字,它们是Windows文件中的一灶握蚂个重要部分。

string.h

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

math.h

数学函数库,一些数学计算的公式的具体实现是放在math.h里

比如三角函数啥的


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/tougao/12273372.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-24
下一篇 2023-05-24

发表评论

登录后才能评论

评论列表(0条)

保存