19th Jul 2017, 2:10 PM
Himani
7 odpowiedzi
+ 4
yes I wanted to do the same but what's wrong with mine ?
20th Jul 2017, 5:39 PM
Himani
+ 4
@Sreejith mine code was also correct just one silly mistake and caught it.. instead of c3.output (); I wrote cout<<c3.output();
23rd Jul 2017, 2:09 PM
Himani
+ 3
Here's the corrected program. I think.... https://code.sololearn.com/cnM24PWIRn66/?ref=app pls let me know if this is what you wanted
20th Jul 2017, 5:31 PM
‎ ‏‏‎Anonymous Guy
+ 3
hope this will help https://code.sololearn.com/cFbA4kL7S1B4/?ref=app try to link the statements
23rd Jul 2017, 5:58 PM
Himani
+ 2
I mentioned your mistakes in this program. check it out https://code.sololearn.com/cBzaSWCH7hb3/?ref=app
20th Jul 2017, 6:21 PM
‎ ‏‏‎Anonymous Guy
+ 1
output function is declared as void and you cannot use cout to display void function ,it will cause error I think you should declare output as int anyway you got it right that's good
23rd Jul 2017, 2:53 PM
‎ ‏‏‎Anonymous Guy
+ 1
@Himani if you don't mind can you explain your code, I can't understand how it works
23rd Jul 2017, 3:21 PM
‎ ‏‏‎Anonymous Guy