fork(2) download
  1. #include <string>
  2. #include <iostream>
  3. int main()
  4. {
  5. int i = 5;
  6. std::string directory = ":/karim/pic" + std::to_string(i) + ".jpg";
  7. std::cout << directory << '\n';
  8. }
  9.  
Success #stdin #stdout 0s 2964KB
stdin
Standard input is empty
stdout
:/karim/pic5.jpg