Hello, I am a CS student from Taiwan.
I am learing English and Programming.
I'll save source code of some problems or small programs without comments in this blog.
I would recommend you not to read solution from others before you solved the problem.
(這邊專門存放沒有任何註解的小程式/OJ題目程式碼)
2013年7月31日
C++ Default parameter value
#include <stdio.h>
int mul(int a, int b = 0) {
return a * b;
}
int main() {
printf("%d %d", mul(5), mul(5, 1));
return 0;
}
沒有留言:
張貼留言