Question: Hi, I need help with the following c++ program: // -------------------------------------------------------------------- // Function: COMPLETE THE MAIN to: // (1) Read two C-strings, S1 and S2
Hi, I need help with the following c++ program:
// -------------------------------------------------------------------- // Function: COMPLETE THE MAIN to: // (1) Read two C-strings, S1 and S2 (do not contain spaces). // (2) Determine the relationship between S1 and S2 // EQUAL -- when S1 and S2 are equivalent. // LESS -- when S1 < S2 // GREATER -- when S1 > S2 // (3) Display the relationship (EQUAL, LESS or GREATER). // -------------------------------------------------------------------- #include
bool _f(char a[]) {return strlen(a) % 2;} // DO NOT MOVE, DELETE or MODIFY.
int main() { char S1[80], S2[80];
cout << ' ' << _f(S1) << endl; return 0; // DO NOT MOVE, DELETE or MODIFY. }//main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
