输入五个字符串,要求按照字母顺序(即按ASCII码从小到大的顺序)输出这五个字符串。

[复制链接]
查看11 | 回复1 | 2012-10-30 07:05:53 | 显示全部楼层 |阅读模式
#include#include#define N 5void main(){ int i,j; char str[N][80],temp[80]; printf("请输入%d个字符串:\n",N); for(i=0;i0) {
strcpy(temp,str);
strcpy(str,str[j]);
strcpy(str[j...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行