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