Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- #include<fstream>
- #include<vector>
- #include<string>
- using namespace std;
- bool extraction(char *file, string &bla)
- {
- fstream x;
- x.open(file);
- getline( x,bla);
- x.close();
- return true;
- }
- bool manipulation(vector <string> &p, string mystr)
- {
- char *v;
- v=strtok(strdup(mystr.c_str()), ".?!");
- while (v != NULL)
- {
- p.push_back(v);
- v = strtok(NULL, ".!?");
- }
- }
- int main()
- {
- string y;
- extraction("lipsa_cafea.txt", y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement