qfedu-cpp-level/day2/homework/h2.cpp

14 lines
189 B
C++
Raw Permalink Normal View History

2023-07-25 20:00:23 +08:00
#include <iostream>
using namespace std;
int func1(int a, int, int b = 20)
{
return a + b;
}
int main()
{
cout << func1(10, 30) << endl;
cout << func1(10, 10, 100) << endl;
}