//Lecture10 subLists void subListsHelper (Vector<string>& ori,Vector<string>& chosen) { if(ori.isEmpty()) { cout << chosen <<endl; } else { //every possible choice --include "a" or not //choose -try with "a" ... try without "a" cout<<recursionIndent()<<"ori : "<<ori<<"chosen : "<<chosen<<endl;
string store=ori[0]; ori.remove(0);
//explore
//case 1 explore exclude "a" subListsHelper(ori,chosen);