运行 ❯
获取你
自己的
网站
×
更改方向
更改主题,浅色/深色
前往 Spaces
#include <iostream> using namespace std; int plusFuncInt(int x, int y) { return x + y; } double plusFuncDouble(double x, double y) { return x + y; } int main() { int myNum1 = plusFuncInt(8, 5); double myNum2 = plusFuncDouble(4.3, 6.26); cout << "Int: " << myNum1 << "\n"; cout << "Double: " << myNum2; return 0; }
Int:13
Double:20.56