bool literal
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Linguaggio C + +
Temi generali Original: General topics The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
Controllo del flusso Original: Flow control The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
Dichiarazioni esecuzione condizionale Original: Conditional execution statements The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
Iterazione dichiarazioni Original: Iteration statements The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
| |||||||||||
Vai dichiarazioni Original: Jump statements The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
Funzioni Original: Functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
dichiarazione di funzione | |||||||||||
lambda funzione dichiarazione | |||||||||||
funzione di modello | |||||||||||
specificatore inline | |||||||||||
eccezioni specifiche(deprecato) | |||||||||||
noexcept specificatore(C++11) | |||||||||||
Eccezioni Original: Exceptions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
Spazi dei nomi Original: Namespaces The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
Tipi Original: Types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
decltype specifier(C++11) | |||||||||||
Specifiers Original: Specifiers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
cv specificatori | |||||||||||
Durata di stoccaggio specificatori | |||||||||||
constexpr specificatore(C++11) | |||||||||||
specificatore auto(C++11) | |||||||||||
alignas specificatore(C++11) | |||||||||||
Inizializzazione Original: Initialization The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |||||||||||
Letterali Original: Literals The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
| ||||||||||||||||
Espressioni Original: Expressions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
rappresentazioni alternative | ||||||||||||||||
Utilities Original: Utilities The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
Tipi Original: Types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
typedef declaration | ||||||||||||||||
Tipo alias dichiarazione(C++11) | ||||||||||||||||
attributi(C++11) | ||||||||||||||||
Lancia Original: Casts The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
conversioni implicite | ||||||||||||||||
const_cast conversion | ||||||||||||||||
static_cast conversion | ||||||||||||||||
dynamic_cast conversion | ||||||||||||||||
reinterpret_cast conversion | ||||||||||||||||
Fusione C-stile e funzionale | ||||||||||||||||
Occupazione della memoria Original: Memory allocation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
Classi Original: Classes The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
Specifiche per una classe di funzioni proprietà Original: Class-specific function properties The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
Funzioni membro speciali Original: Special member functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
Modelli Original: Templates The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
classe template | ||||||||||||||||
funzione di modello | ||||||||||||||||
modello di specializzazione | ||||||||||||||||
parametri confezioni(C++11) | ||||||||||||||||
Varie Original: Miscellaneous The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | ||||||||||||||||
Montaggio in linea |
[modifica]Sintassi
true | (1) | ||||||||
false | (2) | ||||||||
[modifica]Spiegazione
# Boolean
true
(valore 1)Original:
#boolean
true
(value of 1)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.
# Boolean
false
(valore 0)Original:
#boolean
false
(value of 0)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.
[modifica]Esempio
std::cout<<std::boolalpha<<true<<'\n'<<false<<'\n'<<std::noboolalpha<<true<<'\n'<<false<<'\n';
Output:
true false 1 0