Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <fstream>
  4. using namespace std;
  5. char s[101],a[11],b[11],*p,t[101];
  6. int main()
  7. {
  8. ifstream fin("inlocuirecuvant.in");
  9. ofstream fout("inlocuirecuvant.out");
  10. fin>>a>>b;
  11. fin.get();
  12. fin.getline(s,256);
  13. p=strtok(s," ");
  14. while(p)
  15. {
  16. if(strcmp(p,a)==0)
  17. strca
  18. }
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement