Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- #include <fstream>
- using namespace std;
- int c;
- int main()
- {
- string odczyt;
- ifstream odczyt_pliku ("wierszyk.txt");
- for(int i=1;i<85;i++)
- {
- getline(odczyt_pliku,odczyt);
- if(i%2==0)
- {
- cout <<odczyt<<endl;
- }
- }
- cout<<c;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement