// B1_6.cpp #include #include #include using namespace std; string getChars(const vector &vc) { string temp; vector::const_iterator it; for(it=vc.begin(); it!=vc.end(); it++) temp += *it; return temp; } void main() { char buffer[] = { 'a', 'e', 'i', 'o', 'u' }; vector vc(&buffer[0],&buffer[5]); cout << "\n " << getChars(vc).c_str() << "\n\n"; }