哪里错了。新手求教。
程序代码:#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;
}
程序代码:#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;
}
2013-01-29 16:27

2013-01-29 18:56
2013-01-31 13:35
2013-02-14 10:27
2013-02-16 11:28