地址:https://codeforces.com/problemset/problem/281/A
Capitalization is writing a word with its first letter as a capital letter. Your task is to capitalize the given word.
Note, that during capitalization all the letters except the first one remains unchanged.
Input
A single line contains a non-empty word. This word consists of lowercase and uppercase English letters. The length of the word will not exceed 103.
Output
Output the given word after capitalization.
Examples
题意:第一个字符小写变大写
#include<iostream>
#include<algorithm>
#include<cstring>
using namespace std;
int main()
{
char n[1001];
cin >> n;
if (n[0] >= 'a'&&n[0] <= 'z')
n[0] -= 32;
cout << n << endl;
//system("pause");
return 0;
}