已不再支援此瀏覽器。
請升級至 Microsoft Edge,以利用最新功能、安全性更新和技術支援。
未預期的 #elif
#elif 指示詞出現在 #if、 #ifdef或 #ifndef 建構外部。 請僅在其中一個建構內使用 #elif 。
#elif
#if
#ifdef
#ifndef
下列範例會產生 C1018:
// C1018.cpp #elif // C1018 #endif int main() {}
可能的解決方式:
// C1018b.cpp #if 1 #elif #endif int main() {}
此頁面對您有幫助嗎?