Just a quick question. Since a bool type variable is equal to True/False, or off and on, is it possible to code a program (Such as an adder/half adder) with these values alone?
int addition(int num1, int num2)
{
// First convert to binary values
// Now use both my half adders
}
int main()
{
int input1, input2;
std::cout << "Welcome to Fred's Binary adder\n"
// Get input
int answer = addition(input1, input2);
cout << Answer;
}