![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言
小Aer
站在巨人的肩膀上仰望星空
展开
-
输入五个字符串,输出最长的字符串
#include <stdio.h>#include <string.h > int main(){ int i = 0; char s[80] = {""}, max[80] = {""}; printf("输入五个字符串:\n"); scanf("%s",s); strcpy(max,s); for(i=1原创 2018-11-21 18:18:34 · 15518 阅读 · 7 评论 -
从键盘键入5个国家的名字,按字典序输出
#include <stdio.h>#include <string.h>int main(){ int i,j; char s[5][20],t[20]; for(i=0;i<5;i++) gets(s[i]); for(i=0;i<4;i++) for(j=0;j<4-i;j++) if(strcmp(s[j],s...原创 2018-11-21 18:36:59 · 10674 阅读 · 0 评论 -
判断一个字符串是否是回文字符串
#include<string.h>#include<stdio.h>main(){ char a[40]; //定义一个存放待判断的字符数组 int i=0,len; printf("please input your string :(length<40):"); gets(a); //逐个读取a 数组中的字符 len=strlen(a); //计...原创 2018-11-21 18:41:16 · 8437 阅读 · 2 评论 -
有三行文字,每行最多80个字符,求其中大写字母,小写字母,数字,空格和其他
#include<stdio.h>int main() { char text[3][20];//定义三行,每行最多不超过20个字符的二位数组 char c; int i,j; int upCase,lowCase,num,space,others; upCase=lowCase=num=space=others=0; for(i=0...原创 2018-11-21 18:50:34 · 2690 阅读 · 0 评论 -
2016-2018年第九届蓝桥杯【C++省赛B组】【题目汇总】
**原创文章链接**2016年第七届蓝桥杯【C++省赛B组】【题目汇总】煤球数目生日蜡烛凑算式快速排序抽签方格填数剪邮票四平方定理交换瓶子2017年第八届蓝桥杯【C++省赛B组】【题目汇总】原创链接2018年第九届蓝桥杯【C++省赛B组】【题目汇总】https://blog.csdn.net/y1196645376/article/details/697181...原创 2019-02-19 18:51:35 · 1237 阅读 · 1 评论