习题9-5 通讯录排序

习题9-5 通讯录排序,第1张

习题9-5 通讯录排序
#include 
#include
struct infor{
	char name[11];
	int brithday;   //int最大值为10位数 
	char phone[18];
};
int main()
{
	int i,n,j; 
	scanf("%d",&n);     
    struct infor infor[n],temp[n];
	for(i=0;iinfor[j].brithday){   //交换 
				temp[j]=infor[i];
				infor[i]=infor[j];
				infor[j]=temp[j];
				
			}
		}
	}
	for(i=0;i 

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5718868.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-18

发表评论

登录后才能评论

评论列表(0条)

保存