wartość true (C++)
bool-identifier = true ;
bool-expression logical-operator true ;
Uwagi
Słowo kluczowe this jest jedną z dwóch wartości zmiennej typu bool lub wyrażenie warunkowe (wyrażenie warunkowe jest teraz wyrażenie logiczne PRAWDA).If i is of type bool, then the statement i = true; assigns true to i.
Przykład
// bool_true.cpp
#include <stdio.h>
int main()
{
bool bb = true;
printf_s("%d\n", bb);
bb = false;
printf_s("%d\n", bb);
}