Please use code tags. Edit your post, highlight the code and click the <> button to the right of the edit window. This lets us refer to line numbers in your code.
In your main() function, these lines are wrong:
1 2 3 4
|
void Print_result(int, int, int, int);
void Print_Roman_Numeral(int val);
int Roman_digit_Value(char roman_digit);
int Return_Operation(int Roman_Num, int Second_Roman_Num, char operation);
|
Those lines simply declare the functions. They don't call them. To call a function, you write it's name and put parentheses around the parameters. For example:
int val = Roman_digit_Value(ch);
Other comments:
Indent your code. This will help locate problems. For example,
Print_Result()
won't work as written.
I don't understand what Print_Roman_Numeral is supposed to do or how it works. The code looks like it's trying to convert a roman numeral to an integer, but the argument is an integer to begin with. If you start with an integer then there's no conversion to do.
You should probably represent roman numbers as strings. Then you need a function to convert the roman numeral string to an integer, and another function to convert an integer to a roman numeral string. You already have functions to convert individual roman characters, but not a whole number like MCMLXIII (1963).
The tricky part about handling roman numerals is that sometimes the character adds its value and sometimes it subtracts. For In the example above, C means subtract 100, not add 100.