1)Cannot convert 'int' to 'const char *'
2)Type mismatch in parameter '_s1' in call to 'strcmp(const char *, const char *)'
3)Type mismatch in parameter '_s2' in call to 'strcmp(const char *, const char *)'
Please help me.
>>>>>THE PROGRAM IS TO BE MADE ON TURBO C++<<<<<
All the help provided will be appreciated
However, what you really want to know is how to use strcmp to compare two strings. A string here is an array of characters. You define such an array by specifying the size - how many characters it will be able to hold.
Hence line 9 might look like this:
1 2
char s1[50]; // room for 49 characters
char s2[50]; // last character is reserved for null terminator.