asj*_*hjb -2 c++ constructor overloading disambiguation ambiguous-grammar
如果我有 2 个构造函数重载
calculations(double vector, double angle);
calculations(double horizontalVector, double verticalVector);
Run Code Online (Sandbox Code Playgroud)
我如何确保编译器专门使用我选择的重载之一(因为每个重载在幕后做不同的事情)?
| 归档时间: |
|
| 查看次数: |
67 次 |
| 最近记录: |