fork(1) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. int main(void)
  7. {
  8. cout<<"ok ok ok"<<endl;
  9. char arr[] = "All's well that ends well";
  10. char rak[] = "we after end of string kokoko";
  11. std::string s(arr, 27);
  12. cout<<"no ok, its ko ko ko"<<endl;
  13. std::cout << s << std::endl;
  14. return 1-1;
  15. }
Success #stdin #stdout 0.02s 2812KB
stdin
Standard input is empty
stdout
ok ok ok
no ok, its ko ko ko
All's well that ends well�