char s1[50];
char* s2[50]={"Peter","John","Mary","Tom",.....};
char* s3[50]={"...",".-.","-.-","---",......};
int i=0;
printf("Enter a string: ");
gets(s1);
for (i;s1[i] != '\0';i++){
for (j;j <50; j++){
if (s1[i] == *s2[j])
puts(s3[j]);
}
}
if i want to check s1 if same as s2, than i will print s3. how to do it...
thank you