About 446,000 results
Open links in new tab
  1. How to convert string to char array in C++? - Stack Overflow

    I would like to convert string to char array but not char*. I know how to convert string to char* (by using malloc or the way I posted it in my code) - but that's not what I want. I simply want to

  2. Converting String to "Character" array in Java - Stack Overflow

    Apr 4, 2012 · 136 I want to convert a String to an array of objects of Character class but I am unable to perform the conversion. I know that I can convert a String to an array of primitive …

  3. c++ - convert a char* to std::string - Stack Overflow

    Jul 29, 2009 · I need to use an std::string to store data retrieved by fgets(). To do this I need to convert the char* return value from fgets() into an std::string to store in an array. How can this …

  4. How to convert a char array back to a string? - Stack Overflow

    Apr 11, 2015 · Like if I put the above line to convert a char array to a string into a for loop for example, to me it doesn't quite look right. And yes I'm a bit of a perfectionist. . .

  5. How to convert a String array to char array in Java

    Oct 25, 2013 · How to convert a String array to char array in Java Asked 12 years, 1 month ago Modified 1 year, 2 months ago Viewed 68k times

  6. How to convert a char array to a string? - Stack Overflow

    Jan 22, 2012 · Converting a C++ string to a char array is pretty straightorward using the c_str function of string and then doing strcpy. However, how to do the opposite? I have a char array …

  7. How do I split a string into a list of characters? - Stack Overflow

    5 If you wish to read only access to the string you can use array notation directly.

  8. vba - Split string into array of characters? - Stack Overflow

    Nov 2, 2012 · How is it possible to split a VBA string into an array of characters? I tried Split(my_string, "") but this didn't work.

  9. How to convert a string to character array in c (or) how to extract a ...

    Jan 21, 2019 · In C, a string is actually stored as an array of characters, so the 'string pointer' is pointing to the first character. For instance,

  10. How can I get a character array from a string? - Stack Overflow

    The .length property of a string measures its length in UTF-16 code units, and when you do someString[i] you get the i th UTF-16 code unit of someString. Consequently, you can get an …