返回信息流头文件代码如下:
split.h
#include <iostream>
#include <vector>
bool space(char c);
bool not_space(char c);
vector<string> split(const string& s);
错误:split.h:6: error: expected constructor, destructor, or type conversion before ‘<’ token
实在想不明白 请大家帮忙看看
谢谢拉
这是一条镜像帖。来源:北邮人论坛 / cpp / #32165同步于 2009/11/26
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
头文件上的错误??
tomharold
2009/11/26镜像同步4 回复
订阅后,新回复会通过你的通知中心匿名送达。
4 条回复
主要是对那个错误不太清楚
expected constructor, destructor, or type conversion before ‘<’ token
【 在 epavel 的大作中提到: 】
: 难道是
: using std::string;
: using std::vector:
应该是这样
ps:#include<string>这个也得加上吧