From 84aafff8ba362390fc5717d1ce9b4f8c0a10c062 Mon Sep 17 00:00:00 2001 From: Dimitris Vasiloudis Date: Sun, 1 Mar 2020 11:07:39 +0200 Subject: [PATCH] int -> void no return statement in function returning non-void --- lesson02/CPP2.private.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }