# include <string>using namespace std;
...
string str;
is >> str;
...
string str;
is >> str;
解决方案 »
- 十几行代码产生的超难,超诡异问题,C++高手请进 100分送,解决再送100分
- 五折转让精典C++、VC及游戏编程书
- 谁能提供一个异步方式的串口通信程序?谢谢了
- 请大家帮忙:怎样取得母进程ID
- 紧急求助!!!怎么在Globals里创建全局函数和变量
- Xtreme toolkit 2.0中 CXTListView的OnPaint导致资源泄漏,求助!
- 多个线程间的数据问题
- 哪有VC++ 6.0软件的下载呢?
- 为什么当焦点在EDIT上时 按tab键会发出BEEP声????
- vc++ 程序想用skin++换肤。skin++官网是啥?skin++是谁提供的?
- -= 我是要用fpRead.Close();但不知fpRead是否为已经打开!如何通过它的值来反映出来 =-
- 任务栏图表问题!
你可以定义一个char *s = new char[TextMAXLEN];
is>>s;也行的
# include <string>using namespace std;
...
string str;
is >> str;
CString cstr = str.data();//再加一行
//否则就重载inline ifstream& operator>>(&CString);