Codeblocks使用nullptr報錯:warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat]

Codeblocks使用nullptr報錯:warning: identifier 'nullptr' is a keyword in C++11 [-Wc++0x-compat] 問題描述 主要原因是nullptr是C11的特性,需要在編譯器中設置。 解決步驟 點擊 setting(設置) -----> compiler setting(編譯器設置) -----> Global compiler
相關文章
相關標籤/搜索