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 #include #include using namespace std;

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!