wscanf, fwscanf, swscanf

来自cppreference.com
< c | io

 
 
File input/output
功能
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
文件访问
Original:
File access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
直接输入/输出
Original:
Direct input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fread
fwrite
未格式化的输入/输出
Original:
Unformatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
格式化输入/输出
Original:
Formatted input/output
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
wscanf
fwscanf
swscanf
vwscanf
vfwscanf
vswscanf
(C99)
(C99)
(C99)
wprintf
fwprintf
swprintf
vwprintf
vfwprintf
vswprintf
文件定位
Original:
File positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ftell
fgetpos
fseek
fsetpos
rewind
错误处理
Original:
Error handling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
clearerr
feof
ferror
perror
对文件的操作
Original:
Operations on files
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
remove
rename
tmpfile
tmpnam
 
Defined in header <wchar.h>
int wscanf( const wchar_t* format, ... );
(1) (C99 起)
int fwscanf( FILE *stream, const wchar_t* format, ... );
(2) (C99 起)
int swscanf( const wchar_t* buffer, const wchar_t* format, ... );
(3) (C99 起)
从各种来源中读取数据,解释它根据format,并将结果存储到特定地点.....
Original:
Reads data from the a variety of sources, interprets it according to format and stores the results into given locations.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
读取的数据stdin.
Original:
Reads the data from stdin.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
读取文件中的数据流stream.
Original:
Reads the data from file stream stream.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
读取数据从NULL结尾的宽字符串buffer.
Original:
Reads the data from null-terminated wide string buffer.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目录

[编辑] 参数

stream -
输入文件流中读取
Original:
input file stream to read from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
buffer -
指针指向一个空结尾的宽字符串读取
Original:
pointer to a null-terminated wide string to read from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
format -
指定如何读取输入一个空结尾的宽字符串的指针指向。
Original:
pointer to a null-terminated wide string specifying how to read the input.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
... -
接收参数
Original:
receiving arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 返回值

成功读取的参数个数,或EOF如果发生故障之前,先接收参数被分配.
Original:
Number of arguments successfully read, or EOF if failure occurs before the first receiving argument was assigned.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 为例

[编辑] 另请参阅

(C99)
(C99)
(C99)
stdin,的文件stream
或使用可变参数列表的缓冲区读取格式的宽字符输入
Original:
reads formatted wide character input from stdin, a file stream
or a buffer using variable argument list
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数) [edit]
C++ documentation for wscanf, fwscanf, swscanf