std::printf, std::fprintf, std::sprintf, std::snprintf - cppreference.com
flujo de salida de archivos para escribir
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.
puntero a una cadena de caracteres a escribir
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.
hasta buf_size - 1 caracteres se pueden escribir, más el 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.
puntero a una cadena multibyte terminada en cero que especifica cómo interpretar los datos.
La cadena de formato se compone de espacios en blanco, caracteres sin espacios en blanco (excepto %) y especificaciones de conversión. Cada especificación de conversión tiene el siguiente 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ácter introductorioOriginal:
introductory
%characterThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional) una o más banderas que modifican el comportamiento de la conversión:
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.
-: el resultado de la conversión es justificado a la izquierda en el campo (por defecto es justificado a la derecha)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.+: el signo de conversiones firmados siempre se antepone al resultado de la conversión (por defecto el resultado es precedida por menos sólo cuando es 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.Espacio: si el resultado de una conversión con signo no comienza con un carácter de signo, o está vacío, el espacio se antepone al resultado. Se ignora si la bandera 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 de la conversión se lleva a cabo. Consulte la tabla siguiente para efectos exactos .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 conversiones de números enteros y de punto flotante, ceros a la izquierda se utilizan para rellenar el campo en lugar de espacio caracteres. Para los números de punto flotante se ignora si la precisión se especifica explícitamente. Para las conversiones de usar este resultado pabellón en un comportamiento indefinido. Se ignora si la bandera 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 entero que especifica o
*ancho mínimo de campo. El resultado se rellena con caracteres de espacio' (por defecto), si es necesario, a la izquierda cuando se justifica a la derecha o por la derecha si alineado a la izquierda. En el caso cuando se utiliza*, la anchura es especificado por un argumento adicional deinttipo. Si el valor del argumento es negativo, se produce con el ancho de bandera-campo específico y 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 un número entero o*que especifica' precisión de la conversión. En el caso de que*se utiliza, el' precisión se especifica un argumento adicional del tipoint. Si el valor de este argumento es negativo, se ignora. Consulte la tabla siguiente para los efectos exactos de precisión' .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) longitud' modificador que especifica el tamaño del 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.
conversión de formato 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.
Los especificadores de formato disponibles son las siguientes:
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
|
Precision' especifica el número mínimo de dígitos que pueden aparecer. La precisión predeterminada es Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Si tanto el valor convertido y la precisión son Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. |
|
|
|
|
|
|
|
|
N/A |
o
|
Precision' especifica el número mínimo de dígitos que pueden aparecer. La precisión predeterminada es Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Si tanto el valor convertido y la precisión son Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. En la implementación alternativa' precisión aumenta si es necesario, para escribir uno cero 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. En ese caso, si tanto el valor convertido y la precisión son 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 las letras Original: For the The text has been machine-translated via Google Translate. Para las letras Original: For the The text has been machine-translated via Google Translate. Precision' especifica el número mínimo de dígitos que pueden aparecer. La precisión predeterminada es Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Si tanto el valor convertido y la precisión son Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. En la implementación alternativa' Original: In the alternative implementation The text has been machine-translated via Google Translate. |
N/A | ||||||||
u
|
Precision' especifica el número mínimo de dígitos que aparecen . Original: Precision specifies the minimum number of digits to appear. The text has been machine-translated via Google Translate. La precisión predeterminada es Original: The default precision is The text has been machine-translated via Google Translate. Si tanto el valor convertido y la precisión son Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. |
|
|
|
|
|
|
N/A | ||
fF
|
' La precisión especifica el número mínimo de dígitos que aparecen después del carácter de punto 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. La precisión predeterminada es Original: The default precision is The text has been machine-translated via Google Translate. En la implementación alternativa' carácter de punto decimal se escribe incluso si no hay cifras que siguen . 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 el estilo de conversión infinito y no un número-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 el estilo de conversión Original: For the The text has been machine-translated via Google Translate. Para el estilo de conversión Original: For the The text has been machine-translated via Google Translate. El exponente contiene al menos dos dígitos, más dígitos se utilizan sólo si es necesario . Original: The exponent contains at least two digits, more digits are used only if necessary. The text has been machine-translated via Google Translate. Si el valor es Original: If the value is The text has been machine-translated via Google Translate. ' La precisión especifica el número mínimo de dígitos que aparecen después del carácter de punto 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. La precisión predeterminada es Original: The default precision is The text has been machine-translated via Google Translate. En la implementación alternativa' carácter de punto decimal se escribe incluso si no hay cifras que siguen . 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 el estilo de conversión infinito y no un número-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 el estilo de conversión Original: For the The text has been machine-translated via Google Translate. Para el estilo de conversión Original: For the The text has been machine-translated via Google Translate. El dígito hexadecimal primera es Original: The first hexadecimal digit is The text has been machine-translated via Google Translate. Si el valor es Original: If the value is The text has been machine-translated via Google Translate. ' La precisión especifica el número mínimo de dígitos que aparecen después del carácter de punto 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. La precisión predeterminada es suficiente para la representación exacta del valor . Original: The default precision is sufficient for exact representation of the value. The text has been machine-translated via Google Translate. En la implementación alternativa' carácter de punto decimal se escribe incluso si no hay cifras que siguen . 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 el estilo de conversión infinito y no un número-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 la conversión Original: For the The text has been machine-translated via Google Translate. Para la conversión Original: For the The text has been machine-translated via Google Translate. Vamos Original: Let The text has been machine-translated via Google Translate.
A menos' representación alternativa se pidió a los ceros finales se eliminan, también el carácter de punto decimal se elimina si no parte fraccionaria se deja . 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 el estilo de conversión infinito y no un número-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
|
El resultado es' escrito al valor apuntado por el argumento . Original: The result is written to the value pointed to by the argument. The text has been machine-translated via Google Translate. La especificación completa debe 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 |
Las funciones de conversión de punto flotante convertir el infinito hasta Original: The floating point conversion functions convert infinity to The text has been machine-translated via Google Translate. No-un número-se convierte en Original: Not-a-number is converted to The text has been machine-translated via Google Translate. Las conversiones 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.
La cadena de formato se compone de espacios en blanco, caracteres sin espacios en blanco (excepto %) y especificaciones de conversión. Cada especificación de conversión tiene el siguiente 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ácter introductorioOriginal:
introductory
%characterThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(opcional) una o más banderas que modifican el comportamiento de la conversión:
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.
-: el resultado de la conversión es justificado a la izquierda en el campo (por defecto es justificado a la derecha)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.+: el signo de conversiones firmados siempre se antepone al resultado de la conversión (por defecto el resultado es precedida por menos sólo cuando es 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.Espacio: si el resultado de una conversión con signo no comienza con un carácter de signo, o está vacío, el espacio se antepone al resultado. Se ignora si la bandera 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 de la conversión se lleva a cabo. Consulte la tabla siguiente para efectos exactos .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 conversiones de números enteros y de punto flotante, ceros a la izquierda se utilizan para rellenar el campo en lugar de espacio caracteres. Para los números de punto flotante se ignora si la precisión se especifica explícitamente. Para las conversiones de usar este resultado pabellón en un comportamiento indefinido. Se ignora si la bandera 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 entero que especifica o
*ancho mínimo de campo. El resultado se rellena con caracteres de espacio' (por defecto), si es necesario, a la izquierda cuando se justifica a la derecha o por la derecha si alineado a la izquierda. En el caso cuando se utiliza*, la anchura es especificado por un argumento adicional deinttipo. Si el valor del argumento es negativo, se produce con el ancho de bandera-campo específico y 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 un número entero o*que especifica' precisión de la conversión. En el caso de que*se utiliza, el' precisión se especifica un argumento adicional del tipoint. Si el valor de este argumento es negativo, se ignora. Consulte la tabla siguiente para los efectos exactos de precisión' .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) longitud' modificador que especifica el tamaño del 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.
conversión de formato 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.
Los especificadores de formato disponibles son las siguientes:
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
|
Precision' especifica el número mínimo de dígitos que pueden aparecer. La precisión predeterminada es Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Si tanto el valor convertido y la precisión son Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. |
|
|
|
|
|
|
|
|
N/A |
o
|
Precision' especifica el número mínimo de dígitos que pueden aparecer. La precisión predeterminada es Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Si tanto el valor convertido y la precisión son Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. En la implementación alternativa' precisión aumenta si es necesario, para escribir uno cero 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. En ese caso, si tanto el valor convertido y la precisión son 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 las letras Original: For the The text has been machine-translated via Google Translate. Para las letras Original: For the The text has been machine-translated via Google Translate. Precision' especifica el número mínimo de dígitos que pueden aparecer. La precisión predeterminada es Original: Precision specifies the minimum number of digits to appear. The default precision is The text has been machine-translated via Google Translate. Si tanto el valor convertido y la precisión son Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. En la implementación alternativa' Original: In the alternative implementation The text has been machine-translated via Google Translate. |
N/A | ||||||||
u
|
Precision' especifica el número mínimo de dígitos que aparecen . Original: Precision specifies the minimum number of digits to appear. The text has been machine-translated via Google Translate. La precisión predeterminada es Original: The default precision is The text has been machine-translated via Google Translate. Si tanto el valor convertido y la precisión son Original: If both the converted value and the precision are The text has been machine-translated via Google Translate. |
|
|
|
|
|
|
N/A | ||
fF
|
' La precisión especifica el número mínimo de dígitos que aparecen después del carácter de punto 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. La precisión predeterminada es Original: The default precision is The text has been machine-translated via Google Translate. En la implementación alternativa' carácter de punto decimal se escribe incluso si no hay cifras que siguen . 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 el estilo de conversión infinito y no un número-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 el estilo de conversión Original: For the The text has been machine-translated via Google Translate. Para el estilo de conversión Original: For the The text has been machine-translated via Google Translate. El exponente contiene al menos dos dígitos, más dígitos se utilizan sólo si es necesario . Original: The exponent contains at least two digits, more digits are used only if necessary. The text has been machine-translated via Google Translate. Si el valor es Original: If the value is The text has been machine-translated via Google Translate. ' La precisión especifica el número mínimo de dígitos que aparecen después del carácter de punto 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. La precisión predeterminada es Original: The default precision is The text has been machine-translated via Google Translate. En la implementación alternativa' carácter de punto decimal se escribe incluso si no hay cifras que siguen . 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 el estilo de conversión infinito y no un número-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 el estilo de conversión Original: For the The text has been machine-translated via Google Translate. Para el estilo de conversión Original: For the The text has been machine-translated via Google Translate. El dígito hexadecimal primera es Original: The first hexadecimal digit is The text has been machine-translated via Google Translate. Si el valor es Original: If the value is The text has been machine-translated via Google Translate. ' La precisión especifica el número mínimo de dígitos que aparecen después del carácter de punto 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. La precisión predeterminada es suficiente para la representación exacta del valor . Original: The default precision is sufficient for exact representation of the value. The text has been machine-translated via Google Translate. En la implementación alternativa' carácter de punto decimal se escribe incluso si no hay cifras que siguen . 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 el estilo de conversión infinito y no un número-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 la conversión Original: For the The text has been machine-translated via Google Translate. Para la conversión Original: For the The text has been machine-translated via Google Translate. Vamos Original: Let The text has been machine-translated via Google Translate.
A menos' representación alternativa se pidió a los ceros finales se eliminan, también el carácter de punto decimal se elimina si no parte fraccionaria se deja . 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 el estilo de conversión infinito y no un número-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
|
El resultado es' escrito al valor apuntado por el argumento . Original: The result is written to the value pointed to by the argument. The text has been machine-translated via Google Translate. La especificación completa debe 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 |
Las funciones de conversión de punto flotante convertir el infinito hasta Original: The floating point conversion functions convert infinity to The text has been machine-translated via Google Translate. No-un número-se convierte en Original: Not-a-number is converted to The text has been machine-translated via Google Translate. Las conversiones 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 que especifican los datos a 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.