I typed some code dealing with the "larger function" straight from a c++ book into my compiler to try and decode it to understand it better. But, the compiler keeps giving me the error message "undefined reference to larger" and "undefined reference to compareThree" in the main fuction. Two questions. Why is the compiler giving me this error message and why is the larger function outside of the main?....first time I have seen anything outside of the function main! Thanks
Thanks fg109. Alright I understand that a little. I didn't realize "larger" was a function like "main". I thought the only two functions that one could write code in were void and main. The code worked out though. But, I've read that a compiler reads from top to bottom. How was I receiving an error message for the larger function inside "main" before it even got to the larger function right after "main"?