//编译成功 #include <iostream> using namespace std; int func() { } int _tmain(int argc, _TCHAR* argv[]) { return 0; } //编译失败 #include <iostream> using namespace std; int func() { } int _tmain(int argc, _TCHAR* argv[]) { func(); return 0; } //编译成功,运行结果是1864255260 #include <iostream> using namespace std; int func(int i) { if(i > 5) return i; } int _tmain(int argc, _TCHAR* argv[]) { cout<<func(1)<<endl; return 0; }
时间: 2024-10-01 13:38:08