|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
How to transform into char * string pointer?
I need to transform into char * string variable variable, but I not specified 't know how to carray on with it.
Please help!
Thank you! |
How to transform into char * string pointer?
I know how to answer this "how to." But I will not not not answer it for you.
Be a chinese, I hope you speak Chinese as your first language, not English.
The words which win_hate said having been changed by me now as follow :
Chinese is easy to learn, and it wears well as one 's experience with it grows.
Engilsh is powerful but too ugly to hold in a chinese 'head. |
How to transform into char * string pointer?
GOOD!
WONDERFUL! |
How to transform into char * string pointer?
Oh, the landlord may be right environment can input Chinese characters,
Want the landlord to clarify.
I wonder if you are not a C + + string inside the string variable.
Try to copy (), c_str (), data (), etc. These methods can satisfy your request. |
How to transform into char * string pointer?
Lenovo:you are right!
Rave, this is a C + + programming.
I 've tried c_str (), but that did it' t success. So I need help.
Thank your propmt, Lenovo. |
How to transform into char * string pointer?
Look the class "string" defined in stl, it will tell you the details and what you want. |
How to transform into char * string pointer?
I 've got it now.
Thank you Lenovo!
Thank you ljttlf too! |
How to transform into char * string pointer?
C_str () const char* return with a mandatory conversion or strcpy |
How to transform into char * string pointer?
I not specified 't think is bad speak English as a Chinese people. |
How to transform into char * string pointer?
Thanx above all
I worked hard to learn English, but I think it is not C language ability. Ha ha |
How to transform into char * string pointer?
The simple method is as following :
Temperature string = "tonney";
Tmp = new char * char[10];
Temp.copy (tmp,10);
Cout "" tmp "" endl;
Delete tmp; |
How to transform into char * string pointer?
So easy |
| |