fork download
  1. #include <iostream>
  2. #include <cstring>
  3. int main()
  4. {
  5. char* c;
  6. std::cin.getline(c = new char[20], 20);
  7. std::cout << c;
  8. }
  9.  
Success #stdin #stdout 0s 2988KB
stdin
test
stdout
test