diff --git a/lesson02/CPP2.private.cpp b/lesson02/CPP2.private.cpp index dac4a84..e82eb5b 100644 --- a/lesson02/CPP2.private.cpp +++ b/lesson02/CPP2.private.cpp @@ -12,7 +12,7 @@ class cow if (hunger>10) cout<<"MmmmmmmmMMMmmM"; } - int set_hunger (int h) + void set_hunger (int h) { hunger = h; }