Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4.  
  5. class toto
  6. {
  7. int t[6];
  8. int ilosc;
  9. public:
  10. void losuj()
  11. {
  12. for (int i = 0; i <6; i ++)
  13. {
  14. t[i]=(rand()% 48)+1;
  15. }
  16. }
  17. void wypisz()
  18. {
  19. for (int i = 0; i <6; i ++)
  20. {
  21. cout<<t[i]<<"\n";
  22. }
  23. }
  24.  
  25.  
  26. };
  27. int main(int argc, char** argv) {
  28. toto p;
  29. p. losuj();
  30. p. wypisz();
  31.  
  32.  
  33. return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement