Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
#ifndef BLAH #define <stdio.h> #endif int main(){ return 0; }
使用#ifdef 似乎工作正常。我得到的错误是“宏名必须是标识符”。
#ifndef 是否需要特定的东西?
#define <stdio.h> /* ^ \ --- this should be #include */
例子