Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- class toto
- {
- int t[6];
- int ilosc;
- public:
- void losuj()
- {
- for (int i = 0; i <6; i ++)
- {
- t[i]=(rand()% 48)+1;
- }
- }
- void wypisz()
- {
- for (int i = 0; i <6; i ++)
- {
- cout<<t[i]<<"\n";
- }
- }
- };
- int main(int argc, char** argv) {
- toto p;
- p. losuj();
- p. wypisz();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement