How do I convert the string held in the variable TEXT to a character array called TEXT2[30].
Converting string to character array (C++)?
strcpy( TEXT2, TEXT.c_str() );
if TEXT is a static string, or...
strcpy( TEXT2, TEXT-%26gt;c_str() );
if TEXT is a pointer to a string
Be sure that the length of TEXT is less than 30 chars, also, else results will be...unusual.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment