Write a library with a header file “MyString.h” and implementation file “MyString.cpp”, which contains the following functions:
_ A function “input_string(string &s)” which allows the user to input a string including white spaces
_ A function “int compare_string(string &s1, string &s2)” which compare 2 strings follow dictionary order (do not use library). The function returns 1 if string s1 has higher order than string s2, returns -1 if string s2 has higher order than string s1, return 0 if 2 strings are identical.
Test the functions in a suitably defined main program.
C Board - Announcements in Forum : General Programming Boards
Do you have anything written so far and any specific questions on what you are having trouble with or what doesn't work?
Furthermore, "Help me!!!" is not a suitable topic title. The topic title shall describe what the post is about, not help me. Such topics are frowned upon.
Originally Posted by Adak
Originally Posted by Salem
Perhaps you need to find a forum that "speaks your language."