error: ‘nullptr‘ was not declared in this scope @FDDLC

問題描述:error: 'nullptr' was not declared in this scope 如圖: 從上圖可知,nullptr是C++11的關鍵字!怎麼辦?換到C++11以上唄! 以Code::Blocks爲例,找到Settings->Compiler: 點擊進入後勾選這兩個: 點擊OK完事! 回到項目,要不run一下? 建議先rebuild一下(Ctr+F11),然後再運行(F9)
相關文章
相關標籤/搜索