std:: wscanf, std:: fwscanf, std:: swscanf
|
定义于头文件
<cwchar>
|
||
|
int
wscanf
(
const
wchar_t
*
format, ...
)
;
|
(1) | |
|
int
fwscanf
(
std::
FILE
*
stream,
const
wchar_t
*
format, ...
)
;
|
(2) | |
|
int
swscanf
(
const
wchar_t
*
buffer,
const
wchar_t
*
format, ...
)
;
|
(3) | |
从多种数据源读取数据,根据
format
进行解析,并将结果存储到指定位置。
stream
中读取数据。
buffer
中读取数据。
内容参数
可用的格式说明符如下:
返回值成功读取的参数数量,若在首个接收参数被赋值前发生失败则返回 EOF 。 示例
另请参阅
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||