C/C++の宿題片付けます 152代目
レス数が950を超えています。1000を超えると書き込みができなくなります。
0987デフォルトの名無しさん
2011/11/04(金) 01:23:52.32#include <iostream>
#include <cctype>
int main()
{
char c;
if (std::cin >> c) {
if (islower(c)) {
std::cout << "英小文字です" << std::endl;
} else if (isupper(c)) {
std::cout << "英大文字です" << std::endl;
} else if (isdigit(c)) {
std::cout << "数字です" << std::endl;
} else {
std::cout << "英字でも数字でもありません" << std::endl;
}
}
}
>>985
#include <iostream>
#include <cctype>
int main()
{
char c;
if (std::cin >> c) {
if (islower(c)) {
c = 'a' + (c - 'a' + 1) % ('z' - 'a' + 1);
}
std::cout << c << std::endl;
}
}
レス数が950を超えています。1000を超えると書き込みができなくなります。