|
|
main()
, and no need to declare it either. void
is not necessary when there are no arguments, but that could be a matter of preference. Put your function definitions after main()
.Hi, Nothing to do with your problem, but don't ever call main() Edit & Run , and no need to declare it either. void is not necessary when there are no arguments, but that could be a matter of preference. Put your function definitions after main() Edit & Run . Investigate loops. Cheers |
void
is optional.You're not understanding my question. I know the code is fine and that void is optional. |
Nothing to do with your problem |
main()
- it's a serious problem. Investigate how to do loops instead. There is no need to declare functions if you define them before main, so just move them after main()
. This is so a reader doesn't have to go searching through the file looking for where main()
is.You're not understanding my question. I know the code is fine and that void is optional. |