Your function's prototype should not be inside another function, as your are doing here. It should also be BEFORE the function definition.
Change the function's return type from void to int. The return the value of 'max'. All that's necessary is for you to call the function in the cout call, and the value will be printed out.
By the way, how come you declare the variable 'other' when you don't have any use for it?
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
Offline 5,055 posts
since Apr 2006