Current location - Training Enrollment Network - Mathematics courses - C language header files, conio.h, windows.h, string.h, math.h, what are their uses?
C language header files, conio.h, windows.h, string.h, math.h, what are their uses?
Conio.h is not a header file in the C standard library. Conio is the abbreviation of Console Input/Output, which defines the functions of data input and data output through the console, mainly the corresponding operations generated by some users by pressing the keyboard, such as getch () function and so on.

[Edit this paragraph] contains functions.

Included functions: cgets (char *); cprintf(const char *,...); CP uts(const char *); cscanf(const char *,...); Inp (unsigned short integer); Inpw (unsigned short integer); getch(void); getche(void); kb hit(void); Outp (unsigned short, int); Outpw (unsigned short); putch(int); un getch(int); void _ Cdecl clr eol(void); void _ Cdecl clr SCR(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 high video(void); void _ Cdecl in sline(void); void _ Cdecl low video(void); int _Cdecl movetext (int left,int top,int right,int bottom,int destleft,int dest top); void _ Cdecl norm video(void); int _Cdecl puttext (int left,int top,int right,int bottom,void * source); void _ Cdecl text attr(int new attr); void _ Cdecl text background(int new color); void _ Cdecl text color(int new color); void _ Cdecl text mode(int new mode); int _ Cdecl where x(void); int _ Cdecl where y(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 get pass(const char * prompt); int _ Cdecl kb hit(void); int _ Cdecl putch(int c); int _ Cdecl un getch(int ch);

windows.h

You can see the beginning of a Windows program: # include.

[Edit this paragraph] file content

/*++ BUILD Version: 000 1 If the change has global impact, increase this value. Copyright (c) Microsoft Corporation. Copyright Module Name: windows.h Abstract: The main include file of windows application. -*/# ifndef _ WINDOWS _ # define _ WINDOWS _ # ifdef _ _ borland c _ _ # pragma defineon option _ _ BOROPT _ A-A # pragma defineon option _ _ BOROPT _ H-H # if(_ _ borland c _ _ = = 0x 550)& amp; & defined (_ _ boropt _ a)&; & defined (_ _ boropt _ h) # ErrorUsing -A (ANSI mode) and -H (precompiled header) at the same time is not supported. # endif # endif/* _ _ borland c _ */# pragma option push-b-A8-PC-a-/* p _ o _ push */# ifndef Winver # Define Winver 0x00501# else # If (_ win32 _ winnt) has been defined, & amp(WINVER & lt0x 0400)& amp; & amp(_ WIN32 _ WINNT & gt; 0x0400) #error WINVER setting conflicts with _WIN32_WINNT setting # endif # endif # ifndef _ inc _ Windows # define _ inc _ Windows # ifdefined (_ MSC _ ver)&; & amp(_ MSC _ VER & gt; =1020) # pragmaonce # endif/* If defined, the following flag prohibits the definition of * the specified item. * * NOGDICAPMASKS - CC_*,LC_*,PC_*,CP_*,TC_*,RC _ * NOVIRTUALKEYCODES-VK _ * * NOWINMESSAGES-WM _ *,EM_*,LB_*,CB_* * NOWINSTYLES - WS_*,CS_*,ES_*, LBS_*,SBS_*, CBS _ * * Nosys Metrics-SM _ * * Nomenus-MF _ * * Noicons-idi _ * * Nokeystates-MK _ * * Nosys Commands-SC _ * * Norasterops-binary and ternary grid operations * No show window-SW _ * * OEM resource-OEM resource value * NOATOM-Atom manager routine * NOCLIPBOARD-clipboard routine * NOCOLOR-screen color * NOCTLMGR-control and dialogue routine * NODRAWTEXT-DrawText () and DT_* * NOGDI-all GDI definitions and routines * NOKERNEL-all kernel definitions and routines * NOUSER-all user definitions and routines * NONLS-all NLS definitions and routines * NOMB-MB_* and MessageBox() * NOMEMMGR-GMEM_*, LMEM_*, GHND, LHND, associated routines * Nometafile-typedef metafile PICT * nominmax-macros min (a, b) and max(a, B) * NOMSG-typedef MSG and associated routines * NOOPENFILE-OpenFile (), OemToAnsi, AnsiToOem and of _ * * noscroll-sb _ * * nosound-sound driver routines * Note XT metric-typedef text metric and related routines * NOWH-setwindowshock and wh _ * * nowwinoffsets-gwl _ *, GCL_*, related routines * NOCOMM-COMM driver routines * NOKANJI-Kanji supporting materials. * NOHELP-help engine interface. * NOPROFILER-Profiler interface. * nodewindowpos-defender windowpos routine * NOMCX-modem configuration extension */# If defined (rc _ invoked)&; & amp! defined(nowin RES)# include & lt; Winresrc.h & gt # else # ifdefined (RC _ invoked)/* Turn off a bunch of things and make sure that the RC file is compiled correctly. */# define no atom # define NOGDI # define NOGDICAPMASKS # define NOMETAFILE # define nom max # define NOMSG # define noopen file # define norastrops # define no scroll # define NOSOUND # define NOSYSMETRICS # define notext metric # define NOWH # define no comm # define no kanji # define NOCRYPT # define nom CX # endif # if define(_ _ borland c _ _)& amp; & ampdefined(_ _ cplusplus)# include & lt; Protos of mem.h & gt//mem XXX () routine requires # endif # ifdefined (_ _ borland c _ _) # ifndef _ win32 _ winnt # define _ win32 _ winnt0x0500/* If it is not set, Suppose nt 5.00 */# endif # if defined (_ _ cplusplus) # define nominmax/* for windef. H */ # else # defines nonamellessupion/* for OAIDL. h,OBJIDL。 h,...*/# endif # if defined(_ UNICODE)# define UNICODE # endif # endif # if! Defined (_ 68k _)&; & amp! Defined (_ mppc _)&; & amp! Defined (_ x86 _)&; & amp! Defined (_ ia64 _)&; & amp! Defined (_ amd64 _)&; & ampdefined(_ M _ IX86)# define _ X86 _ # endif # if! Defined (_ 68k _)&; & amp! Defined (_ mppc _)&; & amp! Defined (_ x86 _)&; & amp! Defined (_ ia64 _)&; & amp! Defined (_ amd64 _)&; & ampdefined(_ M _ AMD64)# define _ AMD64 _ # endif # if! Defined (_ 68k _)&; & amp! Defined (_ mppc _)&; & amp! Defined (_ x86 _)&; & amp! Defined (_ ia64 _)&; & amp! Defined (_ amd64 _)&; & ampdefined(_ M _ M68K)# define _ 68K _ # endif # if! Defined (_ 68k _)&; & amp! Defined (_ mppc _)&; & amp! Defined (_ x86 _)&; & amp! Defined (_ ia64 _)&; & amp! Defined (_ amd64 _)&; & defined (_M_MPPC) #define _MPPC_ #endif #if! Defined (_ 68k _)&; & amp! Defined (_ mppc _)&; & amp! Defined (_ x86 _)&; & amp! Defined (_ m _ ix86)&; & amp! Defined (_ amd64 _)&; & defined (_M_IA64) #if! defined(_ IA64 _)# define _ IA64 _ # endif//! _ IA64 _ # endif # ifndef _ MAC # If defined (_68K_) || Defined (_ mppc _) # Define _ MAC # endif # If defined (_ _ MSC _ VER)# if(_ MSC _ VER>;; = 800) # ifndef _ _ cplusplus # pragma warning (disable: 4116)//type _ alignment Generate this-move it//out of the warning push/ pop range. # endif # endif # endif # ifndef RC _ INVOKED # if(_ MSC _ VER & gt; = 800)| | defined(_ _ borland c _ _)# pragma WARNING(DISABLE:45 14)# IFN def _ _ WINDOWS _ DONT _ DISABLE _ PRAGMA _ PACK _ WARNING _ _ # pragma WARNING(DISABLE:4 103)# endif # if _ MSC _ VER & gt; = 1200 # miscellaneous note warning (push)# endif # miscellaneous note warning (disable:400 1)# miscellaneous note warning (disable:420 1)# miscellaneous note warning (disable: 4214) # excpt.h & gt# include & ltstdarg.h & gt# endif/* RC _ INVOKED */# include & lt; Windef.h & gt # include & ltwinbase.h & gt # include & ltwingdi.h & gt # include & ltwinuser.h & gt # If! defined(_ MAC)| | defined(_ win32 nls)# include & lt; winnls.h & gt# endif # ifndef _ MAC # include & ltwincon.h & gt# include & ltwinver.h & gt#endif #if! defined(_ MAC)| | defined(_ win32 reg)# include & lt; winreg.h & gt# endif # ifndef _ MAC # include & ltwinnetwk.h & gt# endif # ifndef WIN32 _ LEAN _ AND _ MEAN # include & lt; cderr.h & gt# include & ltdde.h & gt# include & ltddeml.h & gt# include & ltdlgs.h & gt# ifndef _ MAC # include & ltlzexpand.h & gt# include & ltmmsystem.h & gt# include & ltnb30.h & gt# include & ltrpc.h & gt# endif # include & ltshellapi.h & gt# ifndef _ MAC # include & ltwinperf.h & gt# include & ltwinsock.h & gt# endif # ifndef NOCRYPT # include & lt; wincrypt.h & gt# include & ltwinefs.h & gt# include & ltwinscard.h & gt# endif # ifndef NOGDI # ifndef _ MAC # include & lt; winspool.h & gt# ifdef INC _ ole 1 # include & lt; ole.h & gt# else # include & ltole 2 . h & gt; #endif /*! INC_OLE 1 */ #endif /*! MAC */# include & lt; commdlg.h & gt#endif /*! NOGDI */# endif/* WIN32 _ LEAN _ AND _ MEAN */# include & lt; stralign.h & gt# ifdef _ MAC # include & ltwinwlm.h & gt# endif # ifdef INC _ ole 2 # include & lt; ole 2 . h & gt; # endif/* INC _ ole 2 */# ifndef _ MAC # ifndef no service # include & lt; winsvc.h & gt# endif # if(WINVER & gt; = 0x 0400)# ifndef nom CX # include & lt; mcx.h & gt# endif/* nom CX */# ifndef no ime # include & lt; imm.h & gt# endif # endif/* WINVER & gt; = 0x 0400 */# endif # ifndef RC _ INVOKED # if(_ MSC _ VER & gt; = 800) || Defined (_ _ borland c _ _)# if _ MSC _ VER>;; =1200 # pragmawarning (pop) # else # pragmawarning (default: 400 1) #pragma warning (default: 420 1) # pragma warning (default: 4214) It's an unnecessary warning anyway. */# endif # endif # endif/* RC _ INVOKED */# endif/* RC _ INVOKED */# endif/* _ INC _ WINDOWS */# pragma option Pop/* P _ O _ Pop */# endif/* _ WINDOWS _ */

string.h

Header file About the function definition of character array in C language, the commonly used functions are strlen, strcmp, strcpy, etc. For more details, you can view the file in the include folder. The following is a more detailed introduction:/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * assert.h > //Set the insertion point # include

Mathematics. h

Mathematical function library, the concrete realization of some mathematical calculation formulas is put in math.h, specifically: 1 trigonometric function double sin (double); Double cos (double); Shuangtan (double); 2 inverse trigonometric function doubleasin (double); The result is between [-PI/2, PI/2] double acos (double); The result is between [0, PI] double atan (double); Arctangent (principal value), the result is between [-pi/2, pi/2] double atan2 (double, double); Arctangent (integer value), the result is between [-PI/2, PI/2] 3 hyperbolic trigonometric function double sinh (double); Double cosh (double); Double tanh (double); 4 exponential sum logarithm double exp (double); double sqrt(double); Double; Logarithmic doublelog10 (double) based on e; Double pow(double x, double y)// Calculate the power of y based on x, and round up Double Ceil (double); Take the whole double floor (double); Take the absolute value of the integer 6, double fabs (double); Double Cabs (struct complex znum)//Find the absolute value of the standardized floating-point number double frexp (double f, int *p) of complex number 7; Standardized floating-point number, f = x * 2^p, it is known that f finds x, p (x is between [0.5, 1]) double ldexp (double x, int p); Contrary to frexp, it is known that x and p find the integer f 8 and the remainder double modf (double, double *); Pass the pointer back to the integer part of the parameter and return the decimal part of double fmod (double, double); Returns the remainder of the division of two parameters: 9 Other double hypot(double x, Double Y); //Given the length of two right-angled sides of a right-angled triangle, find the hypotenuse length double ldexp (double x, int exposure); //Calculate x * (exponential power of 2) Double Poly (double x, int degree, double coeffs [])//Calculate polynomial nt matherr(struct exception *e)// Mathematical error calculation handler Source: C&: C++ Code Capsule.