lisa008.c
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C语言 代码 · 共 21 行
C
21 行
// Status: no work to do
// this should give an error on 3rd declaration: that's how the standard reads
#include <iostream.h>
void f(int i, int j);
void f(int i, int j = 99 ); // OK: redeclaration of f(int, int)
void f(int i = 88, int j=99 ); // ERROR
void f(int i, int j)
{
cout << j << '\n';
}
void main()
{
f( 1, 2);
f( 3 );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?