Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. void beolvas(vector<int> &szamok)
  2. {
  3. ifstream infile("lottosz.dat");
  4. while(!infile.eof())
  5. {
  6. int szam;
  7. infile>>szam;
  8. szamok.push_back(szam);
  9.  
  10. }
  11. infile.close();
  12. }
  13. void lottoszamok(vector<int> &szamok)
  14. {
  15. for(int i = 0; i<szamok.size(); i++){
  16. cout<<" "<<szamok[i];
  17. for(int j=i+1; j<5; j++){
  18. cout<<" "<<szamok[j];
  19. }
  20. cout<<endl;
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement