void searchClassEntry(){ int id; string classname; cout<<"******************************************************"<<endl; outputInfo(); cout<<"请输入你要跑的示例类名"<<endl; cout<<"******************************************************"<<endl; cin>>id; switch (id) { case 0: { cout<<"谢谢使用再会!"; exit(0); } case 1: { NumConv *numConv = new NumConv(); numConv->cinPrint(); } break; case 2: { HelloStrings *hello = new HelloStrings(); hello->helloStringOutput(); } break; case 3: { FillString *fill = new FillString(); fill->fillOperation(); } break; case 4: { getWords *getW = new getWords(); getW->readCpp(); } case 5: { Return *ret = new Return(); ret->operatorCfunc(); } break; case 6: { Charlist *char1 = new Charlist(); char1->outPut(); } break; case 7: { Specify *specify = new Specify(); specify->weiOutput(); } break; case 8: { PassByValue *pass = new PassByValue(); pass->show(); } break; case 9: { PassAddress *pass = new PassAddress(); pass->showPointer(); } break; case 10: { voidPointer *voidP = new voidPointer(); voidP->opeatorPointer(); } break; case 11: { Mathops *mathops = new Mathops(); mathops->show(); } break; case 12: { printBinary *p = new printBinary(); p->printB(11); } break; case 13: { CommaOperator *com = new CommaOperator(); com->show(); } break; case 14: { staticCast *sc = new staticCast(); sc->show(); } break; case 15: { ConstCast *con = new ConstCast(); // con->show(); con->show2(); } break; case 16: { Enum *enum1 = new Enum(); enum1->show(); enum1->show2(); enum1->showArray11(); } break; case 17: { FloatingAsBinary *fa = new FloatingAsBinary(); fa->show(); } break; case 18: { StringOperation *so = new StringOperation(); so->operatorString("heeel"); } break; case 19: { PointerLeader *pL = new PointerLeader(); pL->show(); } break; case 20: { FuncPointer *fP = new FuncPointer(); fP->func(); } break; case 21: { FunctionTable *fT = new FunctionTable(); fT->show(); } break; case 22: { StructCpp sc; cout<<"sc.d =="<<sc.d<<endl; } break; case 23: { TemplateTest<int,int> *temp = new TemplateTest<int,int>(); int arr1[] = {1,2,3,4,5,5,6,7,8,9,10}; // int target = 8; // std::cout<<(temp->binSearch(arr1, 0, 11, target))<<endl; // temp->selectionSort(arr1, target); } break; case 24: { // bingTest *bt = new bingTest(); // bind(bingTest::operator11,bt,"hello",12)(); } break; default: { cout<<"输入错误请重新输入!"; searchClassEntry(); } break; } }