有人可以为我编写修改过的整个代码吗?我修改了自己的但仍然有错误,我想使用函数并将其调用到打印 main #include #include #include using namespace std;
int addition(int a=(rand()%99),int b=(rand()%99) {
int r;
r=a+b;
return r;
}
int main() {
int print, a, b;
print = addition(a, b);
cout << "this is result of addition" << print;
}