Overloading by return type

前端 未结 11 1732
我在风中等你
我在风中等你 2020-11-22 07:07

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

11条回答
  •  长情又很酷
    2020-11-22 07:41

    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.

提交回复
热议问题