Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- ifstream wiersz("Wiersz.txt");
- if (!wiersz.is_open())
- {
- cout<<"Brak dostepu do pliku";
- }
- int i=1;
- char x;
- while(wiersz.get(x))
- {
- if (i%3==0)
- {
- cout<<x<<" ";
- i++;
- }
- else
- {
- i++;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement