fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string text = "Ana ";
  7. string text2 = "mere";
  8. cout << text.size();
  9. cout << text2.size();
  10. text += text2;
  11. cout << text.size();
  12. text[0] = 'B';
  13. cout << text;
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
448Bna mere