急急急!!!一个简单的问题

wljsky 2002-01-04 03:12:44
我现在刚刚转到unix下c++编程,以前是用vc的,现在做了一个简单的测试程序,可是却出现了很多的错误,我用了标准模板类,请问大侠,unix下是不是不支持stl,我想不太可能。源程序如下
#include "iostream.h"
#include "vector.h"
#include "algorithm.h"
using namespace std;
int main(int argc, char* argv[])
{
vector<int> test;
test.push_back(1);
test.push_back(2);
test.push_back(3);
test.push_back(4);
reverse(test.begin(),test.end());
cout<<"test first: "<<test.begin()<<endl;
cout<<"test last: "<<test[3]<<endl;
return 0;
}
可是编译出错,说找不到vector.h,是不是我写的有问题?

我用的aCC编译命令

请指点
...全文
39 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
wljsky 2002-01-04
  • 打赏
  • 举报
回复
问题已经解决,谢谢
swat 2002-01-04
  • 打赏
  • 举报
回复
vector.h 改称vector
wljsky 2002-01-04
  • 打赏
  • 举报
回复
怎么没有人回答我啊

69,373

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧