fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. int main()
  5. {
  6. std::string s1(10, 'A');
  7. std::string s2{10, 'A'};
  8. std::cout << s1 << "\n";
  9. std::cout << s2 << "\n";
  10. }
  11.  
Success #stdin #stdout 0s 2984KB
stdin
Standard input is empty
stdout
AAAAAAAAAA

A