Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <fstream>
- using namespace std;
- char s[101],a[11],b[11],*p,t[101];
- int main()
- {
- ifstream fin("inlocuirecuvant.in");
- ofstream fout("inlocuirecuvant.out");
- fin>>a>>b;
- fin.get();
- fin.getline(s,256);
- p=strtok(s," ");
- while(p)
- {
- if(strcmp(p,a)==0)
- strca
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement