fork(2) download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. std::string s("Test");
  8.  
  9. std::vector<int> v(s.begin(), s.end());
  10.  
  11. for (int i : v)
  12. cout << i << " ";
  13. cout << endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
84 101 115 116