#include #include int main(void) { char s1[100]; char s2[100]; printf("文字列を入力して下さい。:"); scanf("%s", s1); printf("比較する文字列を入力して下さい。:"); scanf("%s", s2); if(stricmp(s1, s2) == 0) { /* 文字列比較:二つの文字列が一致する */ printf("入力された二つの文字列は一致します。\n"); } else { /* 文字列比較:二つの文字列が一致しない */ printf("入力された二つの文字列は一致しません。\n"); } return 0; }