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