任务
- 观察如下代码,写出两个不同的重载函数,完成浮点数和字符串操作
int my_swap(int a,int b);
- 1
代码块
复制 预览
- 找出如下代码中的错误,并修复它
#include <iostream>
int main(void)
{
cout << calc(,100,200) << endl;
return 0;
}
int calc(int a = 10,int b,int c)
{
return (a + b + c);
}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
代码块
复制 预览