+ 1

C++ code help

https://code.sololearn.com/cfcBKhZrBJkV/#cpp after if (sino == "Si" || sino == "si") { main(); the rest of the code doesnt work, the program just closes. Can someone help me?

23rd Oct 2017, 10:44 PM
Lautaro Segura
Lautaro Segura - avatar
4 Answers
+ 1
i didn't test it because i can't use conio header. but, maybe it'll work: https://code.sololearn.com/cOuOgA3L7Qql/#cpp
23rd Oct 2017, 11:33 PM
Cain Eviatar
Cain Eviatar - avatar
+ 2
I've placed a simple do-while loop in your code. Let me know if it works: https://code.sololearn.com/c5yqAePt6iz5
24th Oct 2017, 1:56 AM
Zeke Williams
Zeke Williams - avatar
+ 1
you cannot call main() function. you have to create another fucntions for that, or create a while loop.
23rd Oct 2017, 11:13 PM
Cain Eviatar
Cain Eviatar - avatar
0
how I do that?
23rd Oct 2017, 11:16 PM
Lautaro Segura
Lautaro Segura - avatar