📅  最后修改于: 2022-03-11 14:44:53.188000             🧑  作者: Mango
#include
#include
int main()
{
string str{}; // creating string
getline(cin, str);// using getline for user input
std::cout << str; // output string namePerson
if (str[0] >= 'a' || str[0] <= 'z')
str[0] -= 32;
return (0);
}