Creating Function Templates
Hi...I've posted here before and received some help on a program, and now I'm here to get some help on another problem: I'm having trouble understanding the mechanics of function templates and function overloading. I've tried several different ways to write this out. This time I have added my code files to make commenting easier. The point to this program is that it is my first experience with using a randomizer, and it's supposed to create certain 'wanderers' who randomly take a step on a square of a certain size. When a wanderer falls off, he is destructed. I am to overload a function to accept and display two parameters, the first one a string and the second several different data types. I think that once I have the template concept down, I can figure out the overloading from there. Anyway, without further preamble, here are my files, and thank you in advance.