Template function with different amount and type of parameters

前端 未结 0 1020
执念已碎
执念已碎 2021-02-07 02:55

so I have a template function:

int someFunc(int num) {

    int a = num / 2;
    int b = num + 10;
    return a + num / b + b;
}

template

        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题