We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2cd2f5 commit fa963beCopy full SHA for fa963be
string_from_vector.cpp
@@ -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