Advertisement
Guest User

Cautarea unui sir

a guest
Nov 18th, 2019
108
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 <stdio.h>
  3. #include <cstring>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {char s1[100],s2[100];
  9.  
  10. gets(s1);
  11. gets(s2);
  12. if(strstr(s1,s2)!=NULL)
  13. cout<<"sirul s2 este inclus in sirul s1";
  14. else
  15. cout<<"sirul s2 nu este inclus in sirul s1";
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement