Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void beolvas(vector<int> &szamok)
- {
- ifstream infile("lottosz.dat");
- while(!infile.eof())
- {
- int szam;
- infile>>szam;
- szamok.push_back(szam);
- }
- infile.close();
- }
- void lottoszamok(vector<int> &szamok)
- {
- for(int i = 0; i<szamok.size(); i++){
- cout<<" "<<szamok[i];
- for(int j=i+1; j<5; j++){
- cout<<" "<<szamok[j];
- }
- cout<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement