Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- using namespace std;
- int main()
- {
- string tekst,wynik;
- ifstream siema("sygnaly.txt");
- if(siema.good())
- cout<<"Otwarto poprawnie"<<endl;
- for(int i=1;i!=1000;i++)
- {
- if(i%40!=0)
- continue;
- else
- {
- siema>>tekst;
- for(int z=0;z!=tekst.size();z++)
- {
- if(z==9)
- wynik+=tekst[z];
- }
- cout<<tekst<<endl;
- }
- }
- cout<<"tu masz wynik: "<<wynik<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement