Create a class complex that contains two double data members. Overload +, -, and * arithmetic operators, so that they can operate on the object of complex. Then find the expression a-b*c + d (where a, b, c, and d are complex objects).
#include using namespace std; int main() { int a = 3; float b = 4.5; double c = 5.25; double sum; sum = a + b + c; cout << "The sum of a, b, and c is", sum << endl; return 0; }
Given three ints, a b c, return true if b is greater than a, and c is greater than b. However, with the exception that if "bOk" is true, b does not need to be greater than a.