#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; }