我将尝试编写一个函数,它的输入是包含单词的字符串,并删除所有单个字符的单词。然后返回新字符串,但不包括被删除的字符。
例如:
string news = FunctionName("This is a test");
//'news' here should be "This is test".
Can you please help?