Use a C++ class to create a new type Boolean with the two values F and T defined. Use the C++ class/struct keyword and an array to create a list of pairs that cover all possible combinations of the 2 Boolean constants you defined.
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
#include <string>
class Boolean {
public:
bool F = false;
bool T = true;
Boolean array[4] = {Boolean(T,T)), Boolean(T,F), Boolean(F,T), Boolean(F,F};
};
I am not sure is this correct because I got this information 'warning: in-class initialization of non-static data member is a C++11 extension [-Wc++11-extensions]'. Could somebody help me Pleaseeee!