.Tc 下头文件为<dos.h>的getpass()函数在VC下怎么用?

.Tc 下头文件为<dos.h>的getpass()函数在VC下怎么用?,第1张

<dos.h>是Turbo C特有的高族头文件,其余的编译器无此头文件。

在VC中想得到当前路径,一般用_getcwd函数,函数原型:

char *_getcwd( char *buffer, int maxlen )

头文件<direct.h>

第一个参数buffer是指向将要储存的路雹物径的字符指针,第二个参数maxlen是允许的路径最大长度。如果成功,返回值戚肆弊就是buffer的值,否则返回NULL

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)

在亩仔c语言里#include<conio.h>是调用函数的头文件。

包含的函数有如厅槐下这些:

putch(int)

ungetch(int)

void

_Cdecl

clreol

(void)

void

_Cdecl

clrscr

(void)

void

_Cdecl

delline

(void)

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)

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)


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

原文地址:https://54852.com/tougao/8225687.html

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

发表评论

登录后才能评论

评论列表(0条)

    保存