Input/output manipulators
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. |
Manipuladores são funções auxiliares que tornam possível o controle de entrada / saída ou de fluxos usando operator<< 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.
Os manipuladores que são invocados sem argumentos (eg std::cout << std::boolalpha; ou std::cin >> std::hex;) são implementados como funções que uma referência a um fluxo como seu único argumento. As sobrecargas especiais de basic_ostream::operator<< e basic_istream::operator>> aceitar ponteiros para essas funções.
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.
Os manipuladores que são chamados com argumentos (por exemplo std::cout << std::setw(10);) são implementadas como funções que retornam objetos do tipo não especificado. Estes manipuladores de definir sua própria
operator<<
ou operator>>
que realizam a manipulação 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> | |
alterna entre representação textual e 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. (função) | |
controla se o prefixo é usado para indicar 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. (função) | |
controla se ponto decimal é sempre incluídos na representação de ponto flutuante 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. (função) | |
controla se o sinal + usados com números positivosOriginal: 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. (função) | |
controla se os espaços em branco é ignorado levando na 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. (função) | |
controls whether uppercase characters are used with some output formats (função) | |
controles se a saída é liberada após cada operação 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. (função) | |
define o posicionamento dos caracteres de preenchimento 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. (função) | |
muda a base utilizada para o inteiro 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. (função) | |
(C++11) (C++11) |
alterações de formatação utilizada para ponto flutuante 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. (função) |
Defined in header
<istream> | |
consome espaço em branco 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. (modelo de função) | |
Defined in header
<ostream> | |
saídas '\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. (modelo de função) | |
libera o fluxo de saída 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. (modelo de função) | |
saídas '\n' e libera o fluxo de saída 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. (modelo de função) | |
Defined in header
<iomanip> | |
limpa os sinalizadores 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. (função) | |
define os sinalizadores 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. (função) | |
muda a base utilizada para o inteiro 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. (função) | |
muda o caráter de preenchimento 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. (modelo de função) | |
mudanças de ponto flutuante de precisão 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. (função) | |
muda a largura da próxima entrada / saída 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. (função) | |
(C++11) |
analisa um valor monetário 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. (modelo de função) |
(C++11) |
formatos e saídas de um valor monetário 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. (modelo de função) |
(C++11) |
analisa um valor de data / hora do 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. (modelo de função) |
(C++11) |
formatos e saídas de um valor de data / hora de acordo com o 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. (modelo de função) |