28. C++的物件導向程式設計中,STL(standard template library)的應用扮演著重要的角色。以下的C++程式碼運用STL中vector類別樣版(class template)及相關的標準函式庫。試問執行後的輸出為何?
vector<char> vch;
char tool[]="TEMPLATES";
for(int i=0; i<9; i++)
vch.push_back(tool[i]);
vch.erase(vch.begin()+3);
vch.insert(vch.end()-2,'C');
for(int j=0;j<9;j++)
cout<<vch[j];
(A) TEMPLATES
(B) TEPLATECS
(C) TEPLATES
(D) TEMLATCES