|
[求助]c语言段错误找不到原因
您好,不是很明白,我用的是dev,只有单步调试功能 |
|
|
|
2014各VIP收费教程全共享—真正的永久免费!
感谢楼主分享! |
|
[讨论]想系统地学习渗透,如何入门?
刚学会结构体,难道只能编程了? |
|
[求助][求助] 偶数求和,数据测试能过,AC不了,求指点!
恩,你回答的很有道理,谢谢啦! 能不能请你推荐个oj的论坛,我刚学c语言! 顺便再帮我看一个吧,搞了几个小时........ 不甚感激! #include<stdio.h> int main(void) { int n,m,a[100],i,j,k; while(scanf("%d %d",&n,&m)!=EOF&&(m!=0&&n!=0)) { for(i=1;i<=n;i++) scanf("%d",&a[i]); for(i=1;i<=n;i++) if(m<=a[i]) { a[i-1]=m; for(k=1;k<=i-1;k++) a[k-1]=a[k]; break; } for(j=0;j<n;j++) printf("%d ",a[j]); printf("%d\n",a[n]); } return 0; } |
|
[求助] c语言最大公约数问题,问题出在哪里?
[QUOTE=EvilKnight;1326832]void main(void){int a,b,n,i,s[]={2,3,5,7,11};scanf("%d\n",&n);while(n--){scanf("%d%d",&a,&b);for(i=0;i<5&&!((a/b)%s[i]);++i);printf("%d\n",b*s[i]);}} ...[/QUOTE] 加个好友吧 |
|
[求助] c语言最大公约数问题,问题出在哪里?
好的,虽然不懂,但还是谢谢你。 |
|
[求助] c语言最大公约数问题,问题出在哪里?
我刚学c语言,好多看不懂呃,而且我感觉老师简直就是在误人子弟。 不知道怎么学起 |
|
[求助] c语言最大公约数问题,问题出在哪里?
[QUOTE=EvilKnight;1326832]void main(void){int a,b,n,i,s[]={2,3,5,7,11};scanf("%d\n",&n);while(n--){scanf("%d%d",&a,&b);for(i=0;i<5&&!((a/b)%s[i]);++i);printf("%d\n",b*s[i]);}} ...[/QUOTE] 谢谢你了,热心人。 |
|
[求助] c语言最大公约数问题,问题出在哪里?
[QUOTE=EvilKnight;1326813]以后这种题自己玩吧! 我很蛋疼的玩了一下,弄了一份0ms,149b的代码给你. 其实还可以再优化的,你自己玩吧![/QUOTE] 请问代码呢? 给我看看吧! 真被搞坏了,弄了两个多小时! 顺便问下有没有自学的资料推荐! |
|
[求助] c语言最大公约数问题,问题出在哪里?
请问代码呢? 给我看看吧! 真被搞坏了,弄了两个多小时! 顺便问下有没有自学的资料推荐! |
|
[求助] c语言最大公约数问题,问题出在哪里?
还是不对啊,感觉我的代码真没问题! |
|
[求助]c语言排序问题,自己写得代码,感觉对,不知道问题出在哪?
学校有一个创新实验室,进去的条件是先刷题。 我以前c语言是什么都不知道的...... 没进去是不是会很吃亏? |
|
[求助]c语言排序问题,自己写得代码,感觉对,不知道问题出在哪?
我刚学习c语言,什么也不懂 |
|
[求助]c语言排序问题,自己写得代码,感觉对,不知道问题出在哪?
杭电 2016题? 刚刚发的还是过不了! |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值