原题网址: http://www.lintcode.com/zh-cn/problem/lowercase-to-uppercase/
将一个字符由小写字母转换为大写字母
a -> A
a
A
b -> B
b
B
1 class Solution { 2 public: 3 /** 4 * @param character: a character 5 * @return: a character 6 */ 7 char lowercaseToUppercase(char character) { 8 // write your code here 9 return character-'a'+'A'; 10 } 11 };