我只寫了一個 auto sum(auto a, auto b) ,就能夠把 int , double , std::string 都拿來相加,而且結果就是依據各個型別的相加規則運算。以前要寫三個 ...
確定! 回上一頁