如何在 cb 中使用 basic_string

hong_qi 2003-06-19 08:55:46
#include <string.h>

string s;

编译通不过.
...全文
38 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2003-06-19
  • 打赏
  • 举报
回复
如果使用名空间,则上面的#include <iostream>/#include <string> 等等都不要加.h后缀,
否则需要加上.h后缀.
pipi168 2003-06-19
  • 打赏
  • 举报
回复
#include <string>
using namespace std;
string s;
hong_qi 2003-06-19
  • 打赏
  • 举报
回复
收到,回去试试。

cyflovezyj 2003-06-19
  • 打赏
  • 举报
回复
为什么不包含dstring.h
invalid 2003-06-19
  • 打赏
  • 举报
回复
#include <string>


using namespace std;

string s;
invalid 2003-06-19
  • 打赏
  • 举报
回复
#include <string.h>
using namespace std;

string s;

编译通不过.

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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