Input/output manipulators
De 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. |
Los manipuladores son funciones auxiliares que hacen posible el control de entrada / salida de secuencias utilizando operator<< o operator>> .
Original:
Manipulators are helper functions that make it possible to control input/output streams using operator<< or operator>>.
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.
Los manipuladores que se invocan sin argumentos (por ejemplo std::cout << std::boolalpha; o std::cin >> std::hex;) se implementan como funciones que toman una referencia a una secuencia como su único argumento. Las sobrecargas especiales de basic_ostream::operator<< y basic_istream::operator>> aceptar punteros a estas funciones .
Original:
The manipulators that are invoked without arguments (e.g. std::cout << std::boolalpha; or std::cin >> std::hex;) are implemented as functions that take a reference to a stream as their only argument. The special overloads of basic_ostream::operator<< and basic_istream::operator>> accept pointers to these functions.
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.
Los manipuladores que son invocadas con argumentos (por ejemplo std::cout << std::setw(10);) se implementan como funciones que devuelven objetos de tipo no especificado. Estos manipuladores de definir su propio
operator<< o operator>> que realizan la manipulación solicitado .Original:
The manipulators that are invoked with arguments (e.g. std::cout << std::setw(10);) are implemented as functions returning objects of unspecified type. These manipulators define their own
operator<< or operator>> which perform the requested manipulation.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.
| Defined in header
<ios> | |
| cambia entre la representación textual y numérica de booleanos Original: switches between textual and numeric representation of booleans The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| controla si prefijo se utiliza para indicar la base numérica Original: controls whether prefix is used to indicate numeric base The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| controla si el punto decimal se incluye siempre en representación de punto flotante Original: controls whether decimal point is always included in floating-point representation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| controla si el signo + utilizados con números no negativosOriginal: controls whether the + sign used with non-negative numbersThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| controla si los principales espacios en blanco se pasa por alto en la entrada Original: controls whether leading whitespace is skipped on input The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| controls whether uppercase characters are used with some output formats (función) | |
| controla si la salida se limpia después de cada operación Original: controls whether output is flushed after each operation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| define la posición de caracteres de relleno Original: sets the placement of fill characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| cambia la base utilizada para el número entero de I / O Original: changes the base used for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| (C++11) (C++11) |
Los cambios de formato utilizado para punto flotante de I / O Original: changes formatting used for floating-point I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) |
| Defined in header
<istream> | |
| consume espacio en blanco Original: consumes whitespace The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) | |
| Defined in header
<ostream> | |
| salidas '\0' Original: outputs '\0' The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) | |
| vacía el flujo de salida Original: flushes the output stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) | |
| salidas '\n' y los colores de la secuencia de salida Original: outputs '\n' and flushes the output stream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) | |
| Defined in header
<iomanip> | |
| borra los indicadores ios_base especificados Original: clears the specified ios_base flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| establece los indicadores de ios_base especificados Original: sets the specified ios_base flags The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| cambia la base utilizada para el número entero de I / O Original: changes the base used for integer I/O The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| cambia el carácter de relleno Original: changes the fill character The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) | |
| cambios de punto flotante de precisión Original: changes floating-point precision The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| cambia el ancho de la siguiente entrada / salida de campo Original: changes the width of the next input/output field The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
| (C++11) |
analiza un valor monetario Original: parses a monetary value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
| (C++11) |
formatos y salidas de un valor monetario Original: formats and outputs a monetary value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
| (C++11) |
analiza un valor de fecha / hora de formato especificado Original: parses a date/time value of specified format The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |
| (C++11) |
formatos y las salidas un valor de fecha / tiempo de acuerdo con el formato especificado Original: formats and outputs a date/time value according to the specified format The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función de plantilla) |