缺少using namespace std;
生活随笔
收集整理的這篇文章主要介紹了
缺少using namespace std;
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
錯誤現象:
error C2143: syntax error : missing ';' before '<'
error C2501: 'list' : missing storage-class or type specifiers
error C2059: syntax error : '<'
error C2039: 'iterator' : is not a member of '`global namespace''
error C2238: unexpected token(s) preceding ';'
error C2143: syntax error : missing ';' before '<'
?
解決方法:
#include <list>
using?? namespace?? std;//此句添加
?
//其他類似錯誤也應該添加此句
?
class myclass
{
.........
}
轉載于:https://blog.51cto.com/1108038/420237
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的缺少using namespace std;的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: fedora下安装pps
- 下一篇: Linux下的signal信号机制