1) Those headers shouldn't be used. Use: <iostream>, <fstream>, instead. Avoid <conio.h>.
2) Where are your function prototypes? Do you even know what benefits prototypes give?
3) int is missing from main(), and so is your return.
1) Those headers are still the same so no need to change anything here at all.
2) Please, do elaborate more on the benefits of prototypes function.
3) It doesn't matter whether the int is missing or not from main(), the code can still be run.
PS: I made small adjustments on line 40th as well as on line 49th and 50th and it worked!
1) Those headers are still the same so no need to change anything here at all.
No. Those headers need to go. Those headers are for C, not C++.
cplusx2 wrote:
2) Please, do elaborate more on the benefits of prototypes function.
Prototypes offer type-checking from the compiler which in turn, allows the compiler to see if the given arguments are suitable. Not only that, prototypes ensure that the given arguments are not implicitly casted to the parameter type.
cplusx2 wrote:
3) It doesn't matter whether the int is missing or not from main(), the code can still be run.
It's not standard C++. Some compilers support it as an extension, but not all.