首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

expected primary-expression before const什么错啊解决思路

2012-04-07 
expected primary-expression before const什么错啊!C/C++ code#include string#include vector#inclu

expected primary-expression before const什么错啊!

C/C++ code
#include <string>#include <vector>#include <iterator>#include <iostream>int main(){    const vector<string>::size_type st=10;    vector<string>  vs(st,"xx");    return 0;}

就这样很短的一段代码,怎么还报错啊!

[解决办法]
main之前添加using namespace std;

热点排行