#include <iostream> gfhgfhgf using namespace std; int main() { return 0; }
为什么这段代码片段会被编译?根据包含语法的gcc参考:
如果文件名后面的行上有任何内容(注释除外),则会出错.
而这正是代码中正在做的事情.
c++ compiler-errors c-preprocessor
c++ ×1
c-preprocessor ×1
compiler-errors ×1