fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4.  
  5. int main() {
  6. const char *file_path = "D:/MyFolder/YetAnotherFolder/test.txt";
  7. std::string file_bk_path = std::string(file_path) + ".bk";
  8. std::cout << file_bk_path << "\n";
  9. return 0;
  10. }
Success #stdin #stdout 0s 4352KB
stdin
Standard input is empty
stdout
D:/MyFolder/YetAnotherFolder/test.txt.bk