#include using namespace std; class No701{ private : string tmp; vector a; string generateString(){ string t = ""; t += tmp[tmp.size()-1]; for(int i = 0;i < rand()%20;i++){ t += char(rand()%25+97); } char last = rand()%25+97; t += char(last == 110 ? 97 : last); tmp = t; a.push_back(tmp); return t; } public : No701(string s){ tmp=s; } vector generateList(int n){ for(int i=0;i> N; No701 no701("hello"); vector a = no701.generateList(N); for(string e : a){ cout << e << endl; } return 0; }