Why is only the first word capitalizing when using the tocap() function?

后端 未结 6 1825
挽巷
挽巷 2021-01-23 15:16

I did the following to upper case the first letter in each word but it\'s only working on the first word. Could someone explain why?

static void Main(string[] ar         


        
6条回答
  •  一生所求
    2021-01-23 15:51

    Use string.Split(' ') to break up the sentence into a bunch of words than use the code you have to capitalize each word... then put it all back together.

提交回复
热议问题