将10个字符(c language)按从大到小的整数以字符串顺序输出出

用C语言的指针(!)实现①输入十个数字,按从小到大的顺序排序后并输出②输入十个字符,按字典顺序排序输_百度知道
用C语言的指针(!)实现①输入十个数字,按从小到大的顺序排序后并输出②输入十个字符,按字典顺序排序输
注意哈,是C语言,指针,这是关键词O(∩_∩)O~紧急~~
提问者采纳
*(p+i)=temp.h&;10;;
p=a;} for(i=0;j&stdio,temp1;int main(){ int i,*p,&b[i]),&a[i]);i++)
scanf(&j&lt,i;%c &i&10;i++)
for(j=i+1;i++) printf(&quot,j;10;;} 2;*(p+i))
{temp=*(p+j); for(i=0;
p=b;*(p+i))
{temp=*(p+j);%d&j++)
if(*(p+j)& char b[10];i&*(p+i)=i& for(i=0;i++)
scanf(&i&lt,a[i]),j;i++) printf(&quot:#include&j++)
if(*(p+j)&i&} for(i=0;i++)
for(j=i+1.h&10; for(i=0;10;10; for(i=0;int main(){ int a[10]:#include&lt,*p;*(p+j)=*(p+i);10;10;%d &quot,;*(p+j)=*(p+i);i&lt,b[i]);%c&quot
提问者评价
急用呢,谢谢O(∩_∩)O~鞠躬~~补分给你~~灰常感谢~~
其他类似问题
为您推荐:
字典的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁C语言定义一个数组,输入10整数,按照从大到小的顺序排列,再把该数组输出_百度知道
C语言定义一个数组,输入10整数,按照从大到小的顺序排列,再把该数组输出
按照从大到小的顺序排列C语言
定义一个数组,再把该数组输出
老师就是这么写的问题,输入10个整数,
提问者采纳
先写一下10个数按从大到小排序的程序*/ } if(i; }
getch():\
main() { int i.h&10;i&lt,p,q!=p) {s=a[i]; for(i=0;i&n&,j,a[10];n input 10 numbers.h& printf(&\ float jun,a[i])/ for(j=i+1;),s; for(i=0; #include &i++) scanf(&q=a[j]; } printf(&*不知道插入的要求是什么;%d&;
/j&10;* 此头函数请不要删除 */ a[p]=s;* 此语句请不要删除*&#47,&a[i]);a[j]) { p=j;
/ a[i]=a[p];q=a[i];j++) if(q&10; #include &i++){ p=i;%d &quot
看不懂,,能按照答题方式分开段落么亲
提问者评价
知道智能回答机器人
我是知道站内的人工智能,可高效智能地为您解答问题。很高兴为您服务。
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁二次元同好交流新大陆
扫码下载App
汇聚2000万达人的兴趣社区下载即送20张免费照片冲印
扫码下载App
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(7356)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_083074',
blogTitle:'c语言: 输入10个字符串,用选择排序法对十个字符串按大到小排序并输出',
blogAbstract:'#include&conio.h& #include&stdio.h& #include&stdlib.h& #define N 10/* 设定要输入的字符串个数,可更改 */ int cmp(char *p1,char *p2) /* 字符串比较函数 */ {int i=0; while (*(p1+i)==*(p2+i)) if (*(p1+i++)==\'\\0\') return 0; /* 这里是先判断*(p1+i)==\'\\0\',然后再是i++ */ return (*(p1+i)-*(p2+i)); } void sort(char *a[N]) /*排序函数*/ {char * int i,j; for(i=0;i&N-1;i++)/* 选择排序 */ ',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:0,
publishTime:9,
permalink:'blog/static/',
commentCount:5,
mainCommentCount:3,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.}

我要回帖

更多关于 windows 10 language 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信