Dev-c++下‘stoi‘ was not declared in this scope解决办法
在練習(xí)PAT時(shí)使用dev-C++寫代碼時(shí),使用stoi函數(shù)發(fā)現(xiàn)提示
’stoi’ was not declared in this scope,
在網(wǎng)上找了許多方法
參考了 https://blog.csdn.net/pythontojava/article/details/86255144
和 https://blog.csdn.net/Joyceyang_999/article/details/87980155 的方法都試了一下還是會(huì)有這個(gè)問題,解決不了
這時(shí)候我想會(huì)不會(huì)是我dev-C++版本不行,
我使用的是免安裝版的Dev-cpp5.4.0,但是不知是什么時(shí)候下的,哪來的了,
因?yàn)镻AT考場(chǎng)的環(huán)境是devc++5.10版本,然后我找到了5.10版本的安裝包 百度云鏈接: https://pan.baidu.com/s/1WKa8ryo5oAtl82EBfn6oLA
提取碼: 2333
,
安裝好之后,直接執(zhí)行代碼還是會(huì)提示
’stoi’ was not declared in this scope,
然后我使用
https://blog.csdn.net/pythontojava/article/details/86255144 的方法在加上
-std=c++11
然后點(diǎn)確定,執(zhí)行。問題解決
總結(jié)
以上是生活随笔為你收集整理的Dev-c++下‘stoi‘ was not declared in this scope解决办法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Vue 第三方集成之 Cesium
- 下一篇: jsp日期格式化显示