Convert a word into character array

后端 未结 5 1730
花落未央
花落未央 2021-01-19 07:16

How do I convert a word into a character array?

Lets say i have the word \"Pneumonoultramicroscopicsilicovolcanoconiosis\" yes this is a word ! I would like to take

5条回答
  •  攒了一身酷
    2021-01-19 07:53

    you can use simple for loop.

    string word = "Pneumonoultramicroscopicsilicovolcanoconiosis";
    int wordCount = word.Length;
    for(int wordIndex=0;wordIndex

提交回复
热议问题