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;
  10. for (char c : s)
  11. v.push_back(c);
  12.  
  13. for (int i : v)
  14. cout << i << " ";
  15. cout << endl;
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
84 101 115 116