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