我遇到了语法/解析错误,但我似乎找不到它。
DataReader.h:11: 错误: '<' 标记之前的预期构造函数、析构函数或类型转换
这是 DataReader.h:
#include <fstream>
#include <iostream>
#include <vector>
#ifndef DATA_H
#define DATA_H
#include "Data.h"
#endif
vector<Data*> DataReader(); // This is line 11, where the error is..
这是 .cpp 文件:
#include "DataReader.h"
using namespace std;
vector<Data*> DataReader()
{
.....
}
我跳过了 DataReader() 的内容,因为我认为它无关紧要,但如果需要,我可以发布它。
感谢您的任何意见/建议。