Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- #define dim 20
- int main(){
- char parola1[dim];
- char parola2[dim];
- cout<<"inserisci due parole"<<endl;
- cin>>parola1>>parola2;
- if(strcmp(parola1,parola2)==0)
- cout <<"uguali"<<endl;
- else
- cout<<"non uguali"<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement