wscanf, fwscanf, swscanf
Материал из cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Заголовочный файл <wchar.h>
|
||
| int wscanf( const wchar_t* format, ... ); |
(1) | (начиная с C99) |
| (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.
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.
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.
You can help to correct and verify the translation. Click here for instructions.
3)
Считывает данные с нулевым широкий
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.
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.
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. (функция) |
| C++ документация для wscanf, fwscanf, swscanf
| |