mickey-->
Are u looking something like this
char *pChar;
string sStr;
cout<<"Please Enter The String ";
cin>>sStr; //string input
pChar = new char[sStr.length() + 1];
strcpy(pChar, sStr.c_str());
delete []pChar;
char *pChar;
string sStr;
cout<<"Please Enter The String ";
cin>>sStr; //string input
pChar = new char[sStr.length() + 1];
strcpy(pChar, sStr.c_str());
delete []pChar;
To copy to clipboard, switch view to plain text mode
I'm not yet clear, actually what is that you are looking for. The above example only uses char*. Please explain what is that you want....
Bookmarks