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(){
- char a;
- int b=0;
- ifstream tok;
- tok.open ("c:/temp/prva.txt");
- while(tok.get(a))
- {
- if(b%2==0){
- cout<<a<<endl;
- }
- b++;
- }
- system ("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement