fork download
  1. #include<iostream>
  2. #include<cstdio>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. char c;
  9. char s[100];
  10. int i=0;
  11. while((c=getchar())!='\n')
  12. {
  13. s[i++]=c;
  14. }
  15. s[i]='\0';
  16. cout<<s;
  17. return 0;
  18. }
Success #stdin #stdout 0s 15240KB
stdin
hi there
stdout
hi there