//使一个字符串中每个单词首字母大写
#include <iostream.h>
#include <ctype.h>
#include <string.h>
char *strupper (char *) ;
void main(void)
{
char *str ;
cin >> str ;
strupper (str) ;
cout << str ;
}
char * strupper (char *string)
{
char *string2;
string2 = string;
toupper(*string2);
for (string2 = string + 1 ; string2 < string + strlen(string) ; string2 ++)
if ( ((*string2) != " ") && (*(string2 - 1)) == " " )
*string2 = toupper (*string2) ;
}