C语言 输入5个字符串,将其中最小的打印出来

C语言 输入5个字符串,将其中最小的打印出来 代码: #include<stdio.h> #include <string.h> void main(){ char str[10],temp[10]; int i; gets(temp);//输一个字符串 for(i=0;i<4;i++)//输入四个字符串 { gets(str); if(strcmp(temp,str)>0)//进行比较 strc
相关文章
相关标签/搜索