#include #include #define MAX 1024 void getstr (char s[], int max) { /* */ int i; int temp; for (i = 0; i < max - 1; i++) { temp = getchar(); if (temp == EOF) { break; } if (temp == '\n') { break; } s[i] = temp; } s[i] = '\0'; while (temp != EOF && temp != '\n') { temp = getchar(); } } void main() { char str1[MAX], str2[MAX]; printf("‚PŒ–ÚF"); getstr(str1, MAX); printf("‚QŒ–ÚF"); getstr(str2, MAX); if (strcmp(str1, str2)) { printf("Not Equal!\n"); } else { printf("Equal!\n"); } }