Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- string first_name, last_name, country, gender;
- int id, points;
- ifstream odczytDane ("wyniki.txt");
- ofstream zapisDane ("output.txt");
- for(int i=1; i<=1000 ;i++)
- {
- odczytDane>>id>>first_name>>last_name>>country>>gender>>points;
- if (points=100)
- {
- cout<<"Wygrał "<<first_name<<endl;
- }
- }
- odczytDane.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment