fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. int count = 100;
  5. char *text = new char[count];
  6. text[0] = 'h';
  7. text[1] = 'e';
  8. text[2] = 'l';
  9. text[3] = 'l';
  10. text[4] = 'o';
  11. text[5] = '!';
  12. text[6] = '\0';
  13. std::cout << text << std::endl;
  14. delete[] text;
  15. return 0;
  16. }
Success #stdin #stdout 0s 3272KB
stdin
Standard input is empty
stdout
hello!