摘要:
#include<stdio.h> #include<string.h> int main() { int N,i,a[1000],m,j; double r[1000],ji[1000],t,pi=3.14; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%lf
阅读全文
posted @ 2016-10-25 21:21
qq77530202
阅读(72)
推荐(0)
编辑
摘要:
循环结构特别注意 对某些元素重新赋值 找不出错误!!! # include<stdio.h>int main(){ int N,i,t,j;double a[1000]={0},b[1000]={0},r,x; scanf("%d",&N); for(i=0;i<N;i++) ///对数组赋值 {
阅读全文
posted @ 2016-10-25 21:13
qq77530202
阅读(85)
推荐(0)
编辑
摘要:
坑点在它要求过程中 的最大值 我看成最后的值 # include<stdio.h>int main(){ int N,M,i,c,d,j,b,max=0,h,a[10][10]={0},count=0; scanf("%d %d",&N,&M); for(h=1;h<=M;h++) { scanf(
阅读全文
posted @ 2016-10-25 20:40
qq77530202
阅读(84)
推荐(0)
编辑
摘要:
scanf输入字符串 不需要地址符 输入字符 需要 正确: #include<stdio.h> #include<string.h> int main() { int N,i,j,n,m; scanf("%d",&N); char a[1000]; for(i=0;i<N;i++) { scanf(
阅读全文
posted @ 2016-10-25 19:55
qq77530202
阅读(102)
推荐(0)
编辑