please help in writing the code using C++ of the following assignment
Write a function called compstr ( ). This function should take two char * strings are arguments, compare them character by character, and return an int. (Example: when the strings are equal it returns 1, if they are different they are different it return 0). Write a main ( ) program to test the function with different combinations of strings. Us pointer notation throughout.
Write a function called compstr ( ). This function should take two char * strings are arguments, compare them character by character, and return an int. (Example: when the strings are equal it returns 1, if they are different they are different it return 0). Write a main ( ) program to test the function with different combinations of strings. Us pointer notation throughout.
Comment