牛批的strcpy和strcmp
来源:互联网 发布:拉圈圈网站源码 编辑:程序博客网 时间:2024/06/15 05:56
#include<iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
int main()
{
char s[10][11],a[10][11];
int i,j,k;
for(i=0;i<10;i++)cin>>s[i];
for(i=0;i<10;i++)
{
k=0;
for(j=0;j<10;j++)
{
if(strcmp(s[i],s[j])>0) k++;
}
strcpy(a[k],s[i]);
}
for(i=0;i<9;i++)cout<<a[i]<<' ';
cout<<a[9]<<endl;
return 0;
}
阅读全文
0 0
- 牛批的strcpy和strcmp
- strcpy 和 strcmp 的玄机
- strcpy,strcat和strcmp的实现源代码
- strcpy,strcat和strcmp的实现源代码
- strcmp和strcpy
- strcmp函数和strcpy函数
- strcmp函数和strcpy函数
- strcmp函数和strcpy函数
- strcmp函数和strcpy函数
- strcmp 函数和 strcpy 函数
- strcmp函数和strcpy函数
- strcmp函数和strcpy函数
- strcmp函数和strcpy函数
- strcmp函数和strcpy函数
- strcmp函数和strcpy函数
- strcmp函数和strcpy函数
- c++实现strcpy和strcmp
- 源码:微软strcpy,strcat和strcmp的实现源代码
- /etc/resolvconf/resolv.conf.d/base
- 第14周项目1-1
- leetcode 7 Reverse Integer
- 高仿淘宝 二级列表固定数据 购物车
- System76:全面支持Linux笔记本/台式电脑的HiDPI显示
- 牛批的strcpy和strcmp
- JavaSE练习
- mysql安装sakila数据库
- 全排列生成
- Linux下知识点整理(二)
- ubuntu16.04下安装显卡驱动
- 手动开发动态资源的步骤注意
- 常用工具类
- 获取APP基本信息的几个步骤