#include<iostream> #include<string> #include<vector> using namespace std; int main() { vector<char>c = { ‘1‘, ‘2‘, ‘3‘ }; string s(c.begin(),c.end()); cout << s << endl; return 0; }
时间: 2024-11-13 06:40:05
#include<iostream> #include<string> #include<vector> using namespace std; int main() { vector<char>c = { ‘1‘, ‘2‘, ‘3‘ }; string s(c.begin(),c.end()); cout << s << endl; return 0; }