|
"kittykat" <f_arikat@nospam.hotmail.com> wrote in message
news:485cae2009f3f0c4990dfc0e611055fc@localhost.talkaboutprogramming.com...
Hi,
I was just wondering how can I convert a String into a char array?
Your help would be greatly appreciated,
Thanx in advance.
That depends: what's a "String"? If you mean the class called "string",
first notice that it is spelled with a lower case "s", which is very
important in C++. And in that case, you can call the c_str() function in
the string class to get a pointer to the character array, from which you are
free to copy to your own char array if you need. If you mean some other,
third-party class called "String", then you'd be best off asking the
creators of that class, or reading their manual.
-Howard
.
|