#include #include #include #include #include #include #include #include using namespace std; class Sentance { private: string words; vector toVector () { istringstream istr(words); string temp; vector tempVec; while(istr>>temp) { tempVec.push_back(temp); } return tempVec; } vectorsentanceVec=toVector(); int SIZE=sentanceVec.size(); public: Sentance(string& str): words(str){} Sentance() { words="not initiallized"; } getRandomized(Sentance& s) { // for(string a : sentanceVec) // { // cout<< a << " "; // } vector checkVec; bool flag=false; for(int a=0; a