编程错误:
在写一个小程序的时候,出现了错误 语法错误 : 缺少“;”(在“<”的前面)
代码如下:
static vector<float *> ptrX;
static vector<float *> ptrVN;
static vector<int *> ptrT;
提示出现了特别多的错误,网上搜索后发现,需要在头文件中添加:
using namespace std;
晕~
为什么在写程序的时候不会提示错误,而在编译的时候,出现了一大堆莫名其妙的错误。。
2018-05-21