fre*_*low 18
我不认为这是可能的.
我不同意:
void bar()
{
}
void foo()
{
bar(); // there, I use bar inside foo
}
Run Code Online (Sandbox Code Playgroud)
如果要使用尚未定义的函数,则必须先声明它才能使用它:
void baz(); // function declaration
void foo()
{
baz();
}
void baz() // function definition
{
}
Run Code Online (Sandbox Code Playgroud)