0

Help Me understand the Error

So i am trying to make a code to summarize things showed in each module in c++ unfortunately There are some problems i dont know how to fix https://code.sololearn.com/cGzwess248gb/?ref=app

21st Jul 2018, 3:22 PM
JoseMiguelRomero
JoseMiguelRomero - avatar
9 odpowiedzi
+ 3
On line 4 you have writed wrong the declaration of Module_2 function because declaration and definition must match (else compiler complain you that cannot find a valid definition) Try to replace with: void Module_2(int);
21st Jul 2018, 3:28 PM
KrOW
KrOW - avatar
+ 3
Additionally, to KrOW answer, on line 22 you are using assignment operator while you need to use comparison operator, modify it as follows: if (Life == 42){
21st Jul 2018, 3:33 PM
Ipang
+ 2
You are welcome 👍👍👍
21st Jul 2018, 3:32 PM
KrOW
KrOW - avatar
+ 2
Ipang Right 👍👍👍
21st Jul 2018, 3:34 PM
KrOW
KrOW - avatar
+ 2
👍👍👍👌
21st Jul 2018, 3:35 PM
JoseMiguelRomero
JoseMiguelRomero - avatar
+ 2
And yes i modified the “=“ just now Some stuff can really slip through your eyes
21st Jul 2018, 3:36 PM
JoseMiguelRomero
JoseMiguelRomero - avatar
+ 1
Right thanks
21st Jul 2018, 3:31 PM
JoseMiguelRomero
JoseMiguelRomero - avatar
+ 1
I got an idea to put a “Thank you” to those who helped 👍
21st Jul 2018, 3:53 PM
JoseMiguelRomero
JoseMiguelRomero - avatar
+ 1
JoseMiguelRomero that wasn't even necessary, it's just a small thing, we all are here to learn and help each other learning, as a community, it's all part of learning, you are too kind : ) Thanks
21st Jul 2018, 5:08 PM
Ipang