Răspunsuri

Cel mai inteligent răspuns!
2014-10-25T19:03:27+03:00
# include<iostream>
# include<string.h>
using namespace std;
int main()
{
    char s[100],aux[100],aux2[100];
    unsigned i;
    cin.get(s,100);
    i=strlen(s)/2;
    strncpy(aux,s,i);
    strcpy(aux2,s + strlen(s)/2);
    aux[i]='\0';
    cout<<strcmp(aux,aux2);
}

2 5 2