I read few questions here on SO about this topic which seems yet confusing to me. I\'ve just begun to learn C++ and I haven\'t studied templates yet or operator overloading
There is no way to overload by return type in C++. Without using templates, using get_int and get_char will be the best you can do.
get_int
get_char