关于C++的一个白痴问题。请有一定英语基础的进。因为是英文的不好意思。。。

来源:百度知道 编辑:UC知道 时间:2024/05/09 00:23:03
Then create a library called “strpro” for your function and write a program to test your library.

这句是叫我们干嘛啊。。。

或者谁帮我把全部都翻译一下把。

Write a function that, given a string containing an English sentence: e.g.

This is a sample sentence.

returns a string containing that the initials of each word in upper cases: e.g.

TIASS

Then create a library called “strpro” for your function and write a program to test your library.

谢谢了啊。。。

然后创建一个库名为“strpro为你的函数”,并编写程序来测试您的图书馆。
写一个函数,给定一个字符串,它包含一个英文句子:例如
这是一个例句。
返回一个字符串,其中包含的每个案件上的缩写词:例如
TIASS
然后创建一个库名为“strpro为你的函数”,并编写程序来测试您的图书馆。

Write a function that, given a string containing an English sentence: e.g.

This is a sample sentence.

returns a string containing that the initials of each word in upper cases: e.g.

TIASS

写一个函数,从一个给定的英文短句,如:
This is a sample sentence.

返回这个短句的每个单词的大写首字母,如:
TIASS

Then create a library called “strpro” for your function and write a program to test your library.
然后为这个函数建立一个叫做 strpro 的库,并建立一个程序来测试这个库。

解题思路也打在这里吧,但是楼主请注意,你这个问题仅仅是问这段英文的意思,不包括解题,所以请重新提问或提高悬赏。

// pszSentence : 要分析的英文短句
// pszInitials : 输出的短句单词首字母大写
// nMaxSize : pszInitials 可以容纳的最大字符数量
void GetInitials(LPCTSTR pszSentence, LPTSTR pszInitials, int nMaxSize)
{
int nIndex = 0;
LPTSTR pszContext = NULL;
// 以