现在的位置: 首页 > 基础课程 > 正文

2011年3月21日/22日 课程【1】

2011年03月18日 基础课程 ⁄ 共 365字 ⁄ 字号 暂无评论

好习惯的养成:检查列表

【检查列表 checklist】

下面的代码中有多少个错误?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
 
int main(int argc, char *argv[])
{
	int i, n;
	double nc;
 
	scanf("%d", n);
	scanf("%d", &n)
	scanf("%d", &nc);
	scanf("%f", &nc);
	printf("3lf", nc);	
 
	if (n>0);
		printf("%d", n);
	if (n%2=0) {
		printf("%d", n);
	}
	while (n>0); 
	{
		printf("see the filmn");
		n--;
	}
 
	printf(".3lf", (n+i)/2);	
 
	return 0;
}

抱歉!评论已关闭.