Guest User

Untitled

a guest
Jan 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class Kotek
  6. {
  7.  
  8. public:
  9.  
  10. Kotek()
  11. {
  12. cout << "Kotek jak haribo - pusty jest" << endl;
  13. };
  14.  
  15. Kotek(int waga)
  16. {
  17. cout << "Nie!! Kotek gruby jest!!! Waży " << waga << "kg " << endl;
  18. Kotek(1);
  19. };
  20.  
  21. Kotek(string wzrost)
  22. {
  23. cout << "TAK!! Kotek wysoki jest " << wzrost << "kg " << endl;
  24. };
  25. };
  26.  
  27. int main() {
  28. Kotek k(1);
  29. return 0;
  30. }
Add Comment
Please, Sign In to add comment