Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <fstream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. string tekst,wynik;
  10. ifstream siema("sygnaly.txt");
  11. if(siema.good())
  12. cout<<"Otwarto poprawnie"<<endl;
  13.  
  14. for(int i=1;i!=1000;i++)
  15. {
  16. if(i%40!=0)
  17. continue;
  18. else
  19. {
  20. siema>>tekst;
  21. for(int z=0;z!=tekst.size();z++)
  22. {
  23. if(z==9)
  24. wynik+=tekst[z];
  25. }
  26. cout<<tekst<<endl;
  27. }
  28. }
  29. cout<<"tu masz wynik: "<<wynik<<endl;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement