Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3.  
  4. void create_pipeline (std::istream is) {
  5. std::string line;
  6.  
  7. while (!is.eof()) {
  8. std::getline(is, line);
  9.  
  10. if (line.at(line.size() - 1) == ',')
  11. std::cout << "p - " << line << std::endl;
  12. }
  13. }
  14.  
  15. int main () {
  16. create_pipeline (std::cin);
  17.  
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement