Skip to content

Commit fa963be

Browse files
string_from_vector.cpp
1 parent c2cd2f5 commit fa963be

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

string_from_vector.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include <iostream>
2+
#include <vector>
3+
#include <string>
4+
using namespace std;
5+
6+
int main()
7+
{
8+
vector<char> v = {'a', 'b', 'c'};
9+
cout << string(v.begin(),v.end());
10+
return 0;
11+
}

0 commit comments

Comments
 (0)