std::printf, std::fprintf, std::sprintf, std::snprintf - cppreference.com
fluxo de arquivo de saída para gravar
Original:
output file stream to write to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ponteiro para uma cadeia de caracteres para escrever
Original:
pointer to a character string to write to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
até buf_size - 1 caracteres podem ser escritos, mais o terminador nulo
Original:
up to buf_size - 1 characters may be written, plus the null terminator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ponteiro para uma string multibyte NULL-Terminated especificando a forma de interpretar os dados.
A cadeia de formato consiste de espaços em branco, não-branco personagens (exceto %) e especificações de conversão. Cada especificação de conversão tem o seguinte formato:
Original:
The format string consists of whitespace characters, non-whitespace characters (except %) and conversion specifications. Each conversion specification has the following format:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
%caráter introdutórioOriginal:
introductory
%characterThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional) um ou mais sinalizadores que modificam o comportamento da conversão:
Original:
(opcional) one or more flags that modify the behavior of the conversion:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
-: o resultado da conversão é justificado à esquerda dentro do campo (por padrão é justificada à direita)Original:
-: the result of the conversion is left-justified within the field (by default it is right-justified)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.+: o sinal de conversões assinado é sempre prefixado no resultado da conversão (por padrão, o resultado é precedido por menos só quando é negativo)Original:
+: the sign of signed conversions is always prepended to the result of the conversion (by default the result is preceded by minus only when it is negative)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.' Espaço: se o resultado de uma conversão assinada não começa com um carácter de sinal, ou estiver vazio, o espaço é anexado ao resultado. É ignorado se
+bandeira está presente.Original:
space: if the result of a signed conversion does not start with a sign character, or is empty, space is prepended to the result. It is ignored if
+flag is present.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.#:' forma alternativa da conversão é executada. Consulte a tabela abaixo para efeitos exatos.Original:
#: alternative form of the conversion is performed. See the table below for exact effects.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.0: para conversões de números inteiros e de ponto flutuante, zeros à esquerda são usados para preencher o campo em vez de espaço personagens. Para os números de ponto flutuante é ignorada se a precisão é explicitamente especificado. Para outras conversões usando esses resultados bandeira em um comportamento indefinido. É ignorado se-bandeira está presente.Original:
0: for integer and floating point number conversions, leading zeros are used to pad the field instead of space characters. For floating point numbers it is ignored if the precision is explicitly specified. For other conversions using this flag results in undefined behavior. It is ignored if-flag is present.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional) valor inteiro ou
*que especifica a largura de campo mínima. O resultado é preenchido com espaço personagens (por padrão), se necessário, à esquerda quando justificada à direita, ou à direita, se justificado à esquerda. No caso quando*é usado, a largura é especificada por um argumento suplementar deinttipo. Se o valor do argumento é negativo, o resultado com a largura do campo-sinalizador especificado e positivo.Original:
(opcional) integer value or
*that specifies minimum field width. The result is padded with space characters (by default), if required, on the left when right-justified, or on the right if left-justified. In the case when*is used, the width is specified by an additional argument of typeint. If the value of the argument is negative, it results with the-flag specified and positive field width.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional)
.seguido de um número inteiro ou*que especifica' precisão da conversão. No caso quando*é usado, o' precisão é especificada por um argumento suplementar deinttipo. Se o valor deste argumento é negativo, ele será ignorado. Consulte a tabela abaixo para efeitos exatos de precisão'.Original:
(opcional)
.followed by integer number or*that specifies precision of the conversion. In the case when*is used, the precision is specified by an additional argument of typeint. If the value of this argument is negative, it is ignored. See the table below for exact effects of precision.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional)' modificador de comprimento que especifica o tamanho do argumento
Original:
(opcional) length modifier that specifies the size of the argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
formato de conversão especificador
Original:
conversion format specifier
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Os especificadores de formato disponíveis são:
Original:
The following format specifiers are available:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
| Conversion specifier |
Explanation | Argument type | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| length modifier | hh
|
h
|
(none) | l
|
ll
|
j
|
z
|
t
|
L
| |
%
|
writes literal %. The full conversion specification must be %%.
|
N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A |
c
|
writes a single character | N/A | N/A | char
|
wchar_t
|
N/A | N/A | N/A | N/A | N/A |
s
|
writes a character string | N/A | N/A | char*
|
wchar_t*
|
N/A | N/A | N/A | N/A | N/A |
di
|
Precisão' especifica o número mínimo de dígitos que aparecem. A precisão padrão é Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Se tanto o valor convertido ea precisão são Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. |
|
|
|
|
|
|
|
|
N/A |
o
|
Precisão' especifica o número mínimo de dígitos que aparecem. A precisão padrão é Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Se tanto o valor convertido ea precisão são Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. Na execução alternativa' precisão é aumentada, se necessário, para escrever um zero inicial. Original: In the alternative implementation precision is increased if necessary, to write one leading zero. The text has been machine-translated via Google Translate. Nesse caso, se tanto o valor convertido ea precisão são Original: In that case if both the converted value and the precision are The text has been machine-translated via Google Translate. |
N/A | ||||||||
xX
|
Para as cartas de conversão Original: For the The text has been machine-translated via Google Translate. Para as cartas de conversão Original: For the The text has been machine-translated via Google Translate. Precisão' especifica o número mínimo de dígitos que aparecem. A precisão padrão é Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Se tanto o valor convertido ea precisão são Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. Na implementação alternativa' Original: In the alternative implementation The text has been machine-translated via Google Translate. |
N/A | ||||||||
u
|
Precision' especifica o número mínimo de dígitos que aparecem. Original: Precision specifies the minimum number of digits to appear. The text has been machine-translated via Google Translate. A precisão padrão é Original: The default precision is The text has been machine-translated via Google Translate. Se tanto o valor convertido ea precisão são Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. |
|
|
|
|
|
|
N/A | ||
fF
|
Precisão especifica o número mínimo de dígitos que aparecem após o caractere de ponto decimal. Original: Precision specifies the minimum number of digits to appear after the decimal point character. The text has been machine-translated via Google Translate. A precisão padrão é Original: The default precision is The text has been machine-translated via Google Translate. Na implementação alternativa' caractere de ponto decimal é escrita, mesmo que não dígitos segui-lo. Original: In the alternative implementation decimal point character is written even if no digits follow it. The text has been machine-translated via Google Translate. Para o infinito e não um número de estilo conversão ver notas. Original: For infinity and not-a-number conversion style see notes. The text has been machine-translated via Google Translate. |
N/A | N/A |
|
|
N/A | N/A | N/A | N/A |
|
e E
|
Para o estilo de conversão Original: For the The text has been machine-translated via Google Translate. Para o estilo de conversão Original: For the The text has been machine-translated via Google Translate. O expoente contém pelo menos dois dígitos, mais dígitos são utilizadas, se necessário. Original: The exponent contains at least two digits, more digits are used only if necessary. The text has been machine-translated via Google Translate. Se o valor for Original: If the value is The text has been machine-translated via Google Translate. Precisão especifica o número mínimo de dígitos que aparecem após o caractere de ponto decimal. Original: Precision specifies the minimum number of digits to appear after the decimal point character. The text has been machine-translated via Google Translate. A precisão padrão é Original: The default precision is The text has been machine-translated via Google Translate. Na implementação alternativa' caractere de ponto decimal é escrita, mesmo que não dígitos segui-lo. Original: In the alternative implementation decimal point character is written even if no digits follow it. The text has been machine-translated via Google Translate. Para o infinito e não um número de estilo conversão ver notas. Original: For infinity and not-a-number conversion style see notes. The text has been machine-translated via Google Translate. |
N/A | N/A | N/A | N/A | N/A | N/A | |||
a A
|
Para o estilo de conversão Original: For the The text has been machine-translated via Google Translate. Para o estilo de conversão Original: For the The text has been machine-translated via Google Translate. O primeiro dígito hexadecimal é Original: The first hexadecimal digit is The text has been machine-translated via Google Translate. Se o valor for Original: If the value is The text has been machine-translated via Google Translate. Precisão especifica o número mínimo de dígitos que aparecem após o caractere de ponto decimal. Original: Precision specifies the minimum number of digits to appear after the decimal point character. The text has been machine-translated via Google Translate. A precisão padrão é suficiente para a representação exata do valor. Original: The default precision is sufficient for exact representation of the value. The text has been machine-translated via Google Translate. Na implementação alternativa' caractere de ponto decimal é escrita, mesmo que não dígitos segui-lo. Original: In the alternative implementation decimal point character is written even if no digits follow it. The text has been machine-translated via Google Translate. Para o infinito e não um número de estilo conversão ver notas. Original: For infinity and not-a-number conversion style see notes. The text has been machine-translated via Google Translate. |
N/A | N/A | N/A | N/A | N/A | N/A | |||
g G
|
Para a conversão de conversão com estilo Original: For the The text has been machine-translated via Google Translate. Para a conversão de conversão com estilo Original: For the The text has been machine-translated via Google Translate. Deixe Original: Let The text has been machine-translated via Google Translate.
A menos que' representação alternativa é solicitado os zeros à direita são removidos, também o caractere de ponto decimal é removido se nenhuma parte fracionária é deixado. Original: Unless alternative representation is requested the trailing zeros are removed, also the decimal point character is removed if no fractional part is left. The text has been machine-translated via Google Translate. Para o infinito e não um número de estilo conversão ver notas. Original: For infinity and not-a-number conversion style see notes. The text has been machine-translated via Google Translate. |
N/A | N/A | N/A | N/A | N/A | N/A | |||
n
|
O resultado é' escrito para o valor apontado pelo argumento. Original: The result is written to the value pointed to by the argument. The text has been machine-translated via Google Translate. A especificação completa deve ser Original: The complete specification must be The text has been machine-translated via Google Translate. |
N/A | N/A | int*
|
N/A | N/A | N/A | N/A | N/A | N/A |
p
|
writes an implementation defined character sequence defining a pointer. | N/A | N/A | void*
|
N/A | N/A | N/A | N/A | N/A | N/A |
As funções de conversão de ponto flutuante converter infinito para Original: The floating point conversion functions convert infinity to The text has been machine-translated via Google Translate. Não-um número é convertido para Original: Not-a-number is converted to The text has been machine-translated via Google Translate. As conversões Original: The conversions The text has been machine-translated via Google Translate. | ||||||||||
Original:
pointer to a null-terminated multibyte string specifying how to interpret the data.
A cadeia de formato consiste de espaços em branco, não-branco personagens (exceto %) e especificações de conversão. Cada especificação de conversão tem o seguinte formato:
Original:
The format string consists of whitespace characters, non-whitespace characters (except %) and conversion specifications. Each conversion specification has the following format:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
%caráter introdutórioOriginal:
introductory
%characterThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional) um ou mais sinalizadores que modificam o comportamento da conversão:
Original:
(opcional) one or more flags that modify the behavior of the conversion:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
-: o resultado da conversão é justificado à esquerda dentro do campo (por padrão é justificada à direita)Original:
-: the result of the conversion is left-justified within the field (by default it is right-justified)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.+: o sinal de conversões assinado é sempre prefixado no resultado da conversão (por padrão, o resultado é precedido por menos só quando é negativo)Original:
+: the sign of signed conversions is always prepended to the result of the conversion (by default the result is preceded by minus only when it is negative)The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.' Espaço: se o resultado de uma conversão assinada não começa com um carácter de sinal, ou estiver vazio, o espaço é anexado ao resultado. É ignorado se
+bandeira está presente.Original:
space: if the result of a signed conversion does not start with a sign character, or is empty, space is prepended to the result. It is ignored if
+flag is present.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.#:' forma alternativa da conversão é executada. Consulte a tabela abaixo para efeitos exatos.Original:
#: alternative form of the conversion is performed. See the table below for exact effects.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.0: para conversões de números inteiros e de ponto flutuante, zeros à esquerda são usados para preencher o campo em vez de espaço personagens. Para os números de ponto flutuante é ignorada se a precisão é explicitamente especificado. Para outras conversões usando esses resultados bandeira em um comportamento indefinido. É ignorado se-bandeira está presente.Original:
0: for integer and floating point number conversions, leading zeros are used to pad the field instead of space characters. For floating point numbers it is ignored if the precision is explicitly specified. For other conversions using this flag results in undefined behavior. It is ignored if-flag is present.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional) valor inteiro ou
*que especifica a largura de campo mínima. O resultado é preenchido com espaço personagens (por padrão), se necessário, à esquerda quando justificada à direita, ou à direita, se justificado à esquerda. No caso quando*é usado, a largura é especificada por um argumento suplementar deinttipo. Se o valor do argumento é negativo, o resultado com a largura do campo-sinalizador especificado e positivo.Original:
(opcional) integer value or
*that specifies minimum field width. The result is padded with space characters (by default), if required, on the left when right-justified, or on the right if left-justified. In the case when*is used, the width is specified by an additional argument of typeint. If the value of the argument is negative, it results with the-flag specified and positive field width.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional)
.seguido de um número inteiro ou*que especifica' precisão da conversão. No caso quando*é usado, o' precisão é especificada por um argumento suplementar deinttipo. Se o valor deste argumento é negativo, ele será ignorado. Consulte a tabela abaixo para efeitos exatos de precisão'.Original:
(opcional)
.followed by integer number or*that specifies precision of the conversion. In the case when*is used, the precision is specified by an additional argument of typeint. If the value of this argument is negative, it is ignored. See the table below for exact effects of precision.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional)' modificador de comprimento que especifica o tamanho do argumento
Original:
(opcional) length modifier that specifies the size of the argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
formato de conversão especificador
Original:
conversion format specifier
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Os especificadores de formato disponíveis são:
Original:
The following format specifiers are available:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
| Conversion specifier |
Explanation | Argument type | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| length modifier | hh
|
h
|
(none) | l
|
ll
|
j
|
z
|
t
|
L
| |
%
|
writes literal %. The full conversion specification must be %%.
|
N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A |
c
|
writes a single character | N/A | N/A | char
|
wchar_t
|
N/A | N/A | N/A | N/A | N/A |
s
|
writes a character string | N/A | N/A | char*
|
wchar_t*
|
N/A | N/A | N/A | N/A | N/A |
di
|
Precisão' especifica o número mínimo de dígitos que aparecem. A precisão padrão é Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Se tanto o valor convertido ea precisão são Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. |
|
|
|
|
|
|
|
|
N/A |
o
|
Precisão' especifica o número mínimo de dígitos que aparecem. A precisão padrão é Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Se tanto o valor convertido ea precisão são Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. Na execução alternativa' precisão é aumentada, se necessário, para escrever um zero inicial. Original: In the alternative implementation precision is increased if necessary, to write one leading zero. The text has been machine-translated via Google Translate. Nesse caso, se tanto o valor convertido ea precisão são Original: In that case if both the converted value and the precision are The text has been machine-translated via Google Translate. |
N/A | ||||||||
xX
|
Para as cartas de conversão Original: For the The text has been machine-translated via Google Translate. Para as cartas de conversão Original: For the The text has been machine-translated via Google Translate. Precisão' especifica o número mínimo de dígitos que aparecem. A precisão padrão é Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Se tanto o valor convertido ea precisão são Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. Na implementação alternativa' Original: In the alternative implementation The text has been machine-translated via Google Translate. |
N/A | ||||||||
u
|
Precision' especifica o número mínimo de dígitos que aparecem. Original: Precision specifies the minimum number of digits to appear. The text has been machine-translated via Google Translate. A precisão padrão é Original: The default precision is The text has been machine-translated via Google Translate. Se tanto o valor convertido ea precisão são Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. |
|
|
|
|
|
|
N/A | ||
fF
|
Precisão especifica o número mínimo de dígitos que aparecem após o caractere de ponto decimal. Original: Precision specifies the minimum number of digits to appear after the decimal point character. The text has been machine-translated via Google Translate. A precisão padrão é Original: The default precision is The text has been machine-translated via Google Translate. Na implementação alternativa' caractere de ponto decimal é escrita, mesmo que não dígitos segui-lo. Original: In the alternative implementation decimal point character is written even if no digits follow it. The text has been machine-translated via Google Translate. Para o infinito e não um número de estilo conversão ver notas. Original: For infinity and not-a-number conversion style see notes. The text has been machine-translated via Google Translate. |
N/A | N/A |
|
|
N/A | N/A | N/A | N/A |
|
e E
|
Para o estilo de conversão Original: For the The text has been machine-translated via Google Translate. Para o estilo de conversão Original: For the The text has been machine-translated via Google Translate. O expoente contém pelo menos dois dígitos, mais dígitos são utilizadas, se necessário. Original: The exponent contains at least two digits, more digits are used only if necessary. The text has been machine-translated via Google Translate. Se o valor for Original: If the value is The text has been machine-translated via Google Translate. Precisão especifica o número mínimo de dígitos que aparecem após o caractere de ponto decimal. Original: Precision specifies the minimum number of digits to appear after the decimal point character. The text has been machine-translated via Google Translate. A precisão padrão é Original: The default precision is The text has been machine-translated via Google Translate. Na implementação alternativa' caractere de ponto decimal é escrita, mesmo que não dígitos segui-lo. Original: In the alternative implementation decimal point character is written even if no digits follow it. The text has been machine-translated via Google Translate. Para o infinito e não um número de estilo conversão ver notas. Original: For infinity and not-a-number conversion style see notes. The text has been machine-translated via Google Translate. |
N/A | N/A | N/A | N/A | N/A | N/A | |||
a A
|
Para o estilo de conversão Original: For the The text has been machine-translated via Google Translate. Para o estilo de conversão Original: For the The text has been machine-translated via Google Translate. O primeiro dígito hexadecimal é Original: The first hexadecimal digit is The text has been machine-translated via Google Translate. Se o valor for Original: If the value is The text has been machine-translated via Google Translate. Precisão especifica o número mínimo de dígitos que aparecem após o caractere de ponto decimal. Original: Precision specifies the minimum number of digits to appear after the decimal point character. The text has been machine-translated via Google Translate. A precisão padrão é suficiente para a representação exata do valor. Original: The default precision is sufficient for exact representation of the value. The text has been machine-translated via Google Translate. Na implementação alternativa' caractere de ponto decimal é escrita, mesmo que não dígitos segui-lo. Original: In the alternative implementation decimal point character is written even if no digits follow it. The text has been machine-translated via Google Translate. Para o infinito e não um número de estilo conversão ver notas. Original: For infinity and not-a-number conversion style see notes. The text has been machine-translated via Google Translate. |
N/A | N/A | N/A | N/A | N/A | N/A | |||
g G
|
Para a conversão de conversão com estilo Original: For the The text has been machine-translated via Google Translate. Para a conversão de conversão com estilo Original: For the The text has been machine-translated via Google Translate. Deixe Original: Let The text has been machine-translated via Google Translate.
A menos que' representação alternativa é solicitado os zeros à direita são removidos, também o caractere de ponto decimal é removido se nenhuma parte fracionária é deixado. Original: Unless alternative representation is requested the trailing zeros are removed, also the decimal point character is removed if no fractional part is left. The text has been machine-translated via Google Translate. Para o infinito e não um número de estilo conversão ver notas. Original: For infinity and not-a-number conversion style see notes. The text has been machine-translated via Google Translate. |
N/A | N/A | N/A | N/A | N/A | N/A | |||
n
|
O resultado é' escrito para o valor apontado pelo argumento. Original: The result is written to the value pointed to by the argument. The text has been machine-translated via Google Translate. A especificação completa deve ser Original: The complete specification must be The text has been machine-translated via Google Translate. |
N/A | N/A | int*
|
N/A | N/A | N/A | N/A | N/A | N/A |
p
|
writes an implementation defined character sequence defining a pointer. | N/A | N/A | void*
|
N/A | N/A | N/A | N/A | N/A | N/A |
As funções de conversão de ponto flutuante converter infinito para Original: The floating point conversion functions convert infinity to The text has been machine-translated via Google Translate. Não-um número é convertido para Original: Not-a-number is converted to The text has been machine-translated via Google Translate. As conversões Original: The conversions The text has been machine-translated via Google Translate. | ||||||||||
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
argumentos especificando dados para imprimir
Original:
arguments specifying data to print
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.