Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4. #define dim 20
  5.  
  6. int main(){
  7.  
  8. char parola1[dim];
  9. char parola2[dim];
  10. cout<<"inserisci due parole"<<endl;
  11. cin>>parola1>>parola2;
  12.  
  13.  
  14. if(strcmp(parola1,parola2)==0)
  15. cout <<"uguali"<<endl;
  16. else
  17.  
  18. cout<<"non uguali"<<endl;
  19.  
  20. return 0;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement