initialization of bools
#include <iostream>
//shows initialization of bools
class Foo
{
private:
bool state;
public:
bool getState()
{
return state;
}
};
int main()
{
Foo f;
std::cout << "The state is " << (f.getState() ? "true" : "false") << "\n";
}