标签:include code 每日 ret set you 每日一题 cout lintcode
#include<iostream>
using namespace std;
class Solution {
public:
/**
* @param character: a character
* @return: a character
*/
char lowercaseToUppercase(char character) {
// write your code here
int a;
char b;
a=int(character);
b=char(a-32);
return b;
}
};
int main()
{
char b;
Solution s;
b=s.lowercaseToUppercase(‘a‘);
cout << b << endl;
return 0;
}
标签:include code 每日 ret set you 每日一题 cout lintcode
原文地址:https://www.cnblogs.com/lijiayan/p/12932449.html