i tried to make a program to compare two string and display which character will come first as you can see below but it gives certain error can any one guide me what changes i have to make
int Mystrcmp (const char* , const char* );
{
cout<<Mystrcmp(v1,v2);
}
int Mystrcmp (const char* v1, const char* v2 )
{
char value1[10]="new york";
char value2[9]="st louis";
char result;
v1=&value1[0];
v2=&value2[0];
if (strcmp (value1, value2) < 0)
result=cout<<value1<<value2;
return result;
else
result=cout<<value2<<value1;
return result;