std::wscanf, std::fwscanf, std::swscanf
Da 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. |
Definido no cabeçalho <cwchar> | ||
int wscanf(constwchar_t* format, ... ); | (1) | (desde C++11) |
int fwscanf( FILE *stream, constwchar_t* format, ... ); | (2) | (desde C++11) |
int swscanf(constwchar_t* buffer, constwchar_t* format, ... ); | (3) | (desde C++11) |
Lê os dados do uma variedade de fontes, interpreta-o de acordo com
format
e armazena os resultados em determinados locais.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)
Lê os dados a partir de 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)
Lê os dados do fluxo de arquivo
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)
Lê os dados terminada em nulo
buffer
corda larga.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.
Índice |
[editar]Parâmetros
stream | - | fluxo de arquivo de entrada para ler 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 | - | ponteiro para uma string terminada em null gama de ler 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 | - | ponteiro para uma string terminada em null ampla especificando como ler a entrada.
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. | ||||
... | - | receber argumentos 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. |
[editar]Valor de retorno
Número de argumentos ler com êxito, ou EOF se a falha ocorre antes do primeiro argumento foi atribuído a receber.
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.
[editar]Exemplo
Esta seção está incompleta Motivo: sem exemplo |
[editar]Veja também
(C++11) (C++11) (C++11) | lê a entrada de caracteres formatada variedade de stdin, um stream arquivo ou um buffer usando lista de argumentos variável 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. (função) |
Documentação C para wscanf, fwscanf, swscanf |