热门

最新

红包

立Flag

投票

同城

我的

发布
2302_79936375
2302_79936375
3 年前
true2302_79936375

求助 为什么会出现这种情况啊!!!


#include<stdio.h>
void sort(int a[], int n);
int main(){
int n,i;
scanf("%d",&n);
int a[1000];
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
sort(a,n);
for(i=0;i<n;i++){
printf("%d ",a[i]);
}
return 0;
}
void sort(int a[],int n){
int i,t,j;
for(j=0;j<n;j++){
for(i=0;i<n-j;i++){
if(a[i+1]<a[i]){
t=a[i];
a[i]=a[i+1];
a[i+1]=t;
}

}
}
}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
requests模块不支持http2.0协议, 在访问使用http2.0协议的网站时, 就需要用到httpx。pip install httpx[http2] # 后面要加[http2]否则不能支持https2.0.、# 参数http2设置为True# 这里Client对象的作用类似于requests的Session对象with httpx.Client(http2=True) as client: resp = client.get(url) print(resp.text)————————————————版权声明:本文为CSDN博主「顽皮的橙子」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/demonscg/article/details/123035665
立即登录