当前位置:网站首页>Find the largest of 3 strings (no more than 20 characters per string).
Find the largest of 3 strings (no more than 20 characters per string).
2022-04-23 08:09:00 【laocooon】
#include <stdio.h>
#include <string.h>
void main()
{ char s[20],string[3][20];
int i;
for (i=0; i<3 ;i++)
gets(string[i]);//string
if(strcmp(string[0],string[1])>0)//string[0][0]>string[1][0]
strcpy(s,string[0]);
else
strcpy(s,string[1]);
if(strcmp(string[2],s)>0)
strcpy(s,string[2]);
printf("%s",s);//printf(s);
}
版权声明
本文为[laocooon]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230638292735.html
边栏推荐
- 从ES、MongoDB、Redis、RocketMQ出发谈分布式存储
- Mysql database backup and recovery under Linux (full + incremental)
- Redis transaction implements optimistic locking principle
- Three minutes to teach you to use Houdini fluid > > to solve particle fluid droplets
- LeetCoed18. 四数之和
- 简述存储器的分级策略
- Construction of middleman environment mitmproxy
- BUFFCTF文件中的秘密1
- How does feign integrate hystrix
- Intranet penetration series: dns2tcp of Intranet tunnel
猜你喜欢

Intranet penetration series: dns2tcp of Intranet tunnel

在MATLAB中快速画圆(给出圆心坐标和半径就能直接画的那种)

Guoji Beisheng openstack container cloud environment construction

输入 “ net start mysql ”,出现 “ 发生系统错误 5。 拒绝访问 ” 。问题详解

分布式服务治理Nacos

三星,再次“西征”

AAAI 2022招募讲者啦!!

国基北盛-openstack-容器云-环境搭建

Go语学习笔记 - 数组 | 从零开始Go语言

thinkphp6+jwt 实现登录验证
随机推荐
Flatten arrays
Redis事务实现乐观锁原理
Alibaba sentinel学习QA
php生成短链接:将数字转成字母,将字母转成数字
LeetCoed18. Sum of four numbers
upload-labs 靶场练习
Implementation of promise all
数据安全问题已成隐患,看vivo如何让“用户数据”重新披甲
Flutter之Provider共享数据的两种方式
Hump naming object
yum源仓库本地搭建的两种方法
MySQL -- the secret of lock -- how to lock data
1216_MISRA_C规范学习笔记_控制流的规则要求
C语言学习记录——삼십팔 字符串函数使用和剖析(2)
How to import Excel data in SQL server, 2019 Edition
Mobile terminal layout (3D conversion, animation)
云计算赛项--2020年赛题基础部分[任务3]
vivo,硬件安全的爱与雷霆
Attack and defense world misc questions 1-50
Positioning and decoration style