fork(16) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6. std::string s = "123";
  7. s.insert(0, 12 - s.length(), '0');
  8.  
  9. std::cout << s << std::endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4508KB
stdin
Standard input is empty
stdout
000000000123