Codeforces Round #172 (Div. 2) A. Word Capitalization

http://codeforces.com/problemset/problem/281/A

题意:首字母大写。

代码:

1
2
3
4
5
6
7
8
9
10
#include <bits/stdc++.h>
using namespace std;

int main() {
string word;
cin >> word;
word[0] = toupper(word[0]);
cout << word;
return 0;
};