fork(1) download
  1. #include <iostream>
  2. #include <string.h>
  3. #include<stdio.h>
  4. #include<fstream>
  5. using namespace std;
  6.  
  7.  
  8. using namespace std;
  9.  
  10.  
  11. void PL() {
  12. string line;
  13.  
  14. while(cin) {
  15. cout<<"Type line now";
  16. if(std::getline(cin,line)) {
  17. // supposed to Parsing string into words and translate//
  18. //but just reading back input for now//
  19. cout<<"You typed:"<<line<<endl;
  20. }
  21. }
  22. }
  23.  
  24. int main() {
  25. PL();
  26. }
Success #stdin #stdout 0s 3476KB
stdin
xxxxxxxxxxxxxxxxxxxxxx
ftuzfdrtzuftzuftuz
tzcfghxdfgxgh
gzuftzftuz
ftzftzftzifiiiiiiiiiiiiiiii
stdout
Type line nowYou typed:xxxxxxxxxxxxxxxxxxxxxx
Type line nowYou typed:ftuzfdrtzuftzuftuz
Type line nowYou typed:tzcfghxdfgxgh
Type line nowYou typed:gzuftzftuz
Type line nowYou typed:ftzftzftzifiiiiiiiiiiiiiiii
Type line now