Advertisement
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;
- string o;
- int main(){
- ifstream odczyt_z_pliku("wiersz.txt");
- while(getline(odczyt_z_pliku, o)){
- if(i%2==0){
- cout << o << endl;
- }
- i=i+1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement