摘要: 1.头文件 #include<cctype> 2.函数原型 int toupper(int c); 3.用法 #include<cstdio> #include<cctype> #include<iostream> using namespace std; int main(){ char a; c 阅读全文
posted @ 2020-07-23 23:21 miao-xixixi 阅读(450) 评论(0) 推荐(0)
摘要: 代码如下: 将小写转换为大写 #include<cstdio> #include<iostream>#include<algorithm>using namespace std;int main(){ char a; cin>>a; char b; b=a-32; cout<<b<<endl; re 阅读全文
posted @ 2020-07-23 23:15 miao-xixixi 阅读(355) 评论(0) 推荐(0)
摘要: 题目如下: 思路: 1. 123 132 213 231 从231开始往上还有三个顺序加上本身为4个 2.需要注意的是定义为char 因为没有输入空格 代码如下: //321 312 231 213 //123 132 213 231 #include<cstdio> #include<iostre 阅读全文
posted @ 2020-07-23 22:59 miao-xixixi 阅读(149) 评论(0) 推荐(0)