> Error mentioned that my program requires a reinterpret_cast , a c_style cast or function_style cast.**
the code you posted does not give that particular error.
the two errors in your code are
a. #include <iostream.h> is not standard c++. replace this with #include <iostream> and using namespace std;
b. main *must* return an int (not void).
when you run the code, there would also be a problem because of whitespaces left in the input buffer after cin>>choice ; . but you could deal with that after getting the program to compile without errors
vijayan121
Posting Virtuoso
1,606 posts since Dec 2006
Reputation Points: 1,159
Solved Threads: 287