已采纳回答 / 慕粉2044851
loop 是一个在编程中习惯用的语句标号,一般配合goto语句使用。比如说:loop:A语句;..(其他语句)goto loop;则goto loop表示程序转去执行loop标记的那个A语句!
2017-12-15
已采纳回答 / 慕粉2150551896
a/4:是除法,求的是商a%4:叫做模运算,求的是余,比如(int)13/4,结果是3;而13%4,结果就是1(余1)(搜360问答的比较形象)
2017-12-15
已采纳回答 / 慕粉0258062366
/* 条件(m%n=0)和(m/n=1)的区别m%n==0: m=2,n=2,m%n==0,m==n 输出2 m=3,n<3,循环两次(m=3,n=2,m%n不等于0,n++)(m=3,n=3,m%n==0,m==n,输出3) m=4,n<4,循环三次(m=4,n=2,m%n等于0,break跳出循环,判断m==n,m不等于n,开始下一主循环m=5 m=5,n<4,循环四次(m=5,n=2,...m=5,n=5,m%n==0,m==n,输出5) m/n==1: m=2,n=2,m%...
2017-12-15
已采纳回答 / 慕工程3150685
#include <stdio.h>int a[105][105];int main(){ int n; while (~scanf("%d",&n)){ for (int i=0;i<n;i++) for (int j=0;j<n;j++) scanf("%d",&a[i][j]);int k=0; for (int i=0;i<n;i++){ ...
2017-12-14
已采纳回答 / 赎罪_0
#include <stdio.h>#include<stdlib.h>//#include<malloc.h>#define Maxsize 100typedef int ElemType;typedef struct { ElemType data[Maxsize]; int length;}SqList;SqList *init_SqList(){ SqList * L; L=(SqList *)malloc(sizeof (SqList)); if(!L) ex...
2017-12-14
已采纳回答 / 慕的地6248495
#include <stdio.h>int main(){ int year = 2008; int month = 8;int day = 8;int count;if((year%4==0&&year%100!=0)||year%400==0){ count = 4*31+2*30+29+8;printf("2018年8月8日是该年的第%d天",count);}else{ count = 4*31+3*30+8;printf("2018年8月8日是该年的第%d天",coun...
2017-12-13