|
蓝森林 http://www.lslnet.com 2006年6月6日 10:18
求助!一个很简单的C++问题
我用VC++。net编了一个很简单的测试程序,但是我的“string”老是有问题,大家帮忙看看。小妹初学C++请多指教
#include<string.h>;
#include<vector.h>;
#include<iostream.h>;
int main()
{
#ifdef DEBUG
cout<<"beginning execution of main()\n";
#endif
string word;
vector<string>;text;
while(cin>;>;word)
{
#ifndef DEBUG
cout<<"word read:"
<<word<<"\n";
#endif
text.push_back(word);
}
}
老说我的string没有定义
多谢多谢 :em10: |
求助!一个很简单的C++问题
为什么不换一个编译器?vs.net,vc7.1...用标准的写法.不要用.h! |
求助!一个很简单的C++问题
#include<string>;
using namespace std; |
| |