标题:哪里错了。新手求教。
取消只看楼主
未未来
Rank: 3Rank: 3
等 级:论坛游侠
威 望:1
帖 子:182
专家分:157
注 册:2012-11-6
结帖率:94.87%
 问题点数:0 回复次数:0 
哪里错了。新手求教。
程序代码:
#include<iostream>
#include <string>

using namespace::std;
int main(){
string st;
cout<<"Enter the string.";
cin>>st;
char *ch=new char[st.size()+1];
char *ch=st.c_str();
delete[]ch;
return 0;
}
搜索更多相关主题的帖子: color 
2013-01-29 16:27



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-397863-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.089876 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved