なぜ私は++b
boolできるのにできないのかを理解しようとしてい--b
ます
#include <stdio.h>
int main(void)
{
bool b = false;
++b;
--b; // error C2428: '--' : not allowed on operand of type 'bool'
printf("%s %d", b ? "true" : "false", b);
getchar();
return 0;
}