-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
L0 有些重复 #44
base: master
Are you sure you want to change the base?
L0 有些重复 #44
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先看到这里吧
practices/c/level0/1万你好.c
Outdated
@@ -0,0 +1,7 @@ | |||
#include<stdio.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要用中文文件名
practices/c/level0/1万你好.c
Outdated
@@ -0,0 +1,7 @@ | |||
#include<stdio.h> | |||
main() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
main函数需要有返回类型
practices/c/level0/1万你好.c
Outdated
{ | ||
int i; | ||
for(i=1;i<=10000;i++) | ||
printf("hello "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缩进+大括号
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先看到这里,尽快改改吧
@@ -0,0 +1,18 @@ | |||
#include<stdio.h> | |||
void move(int n,int x,int y,int z) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
前面只放函数原型,实现代码放到main之后
#include<stdio.h> | ||
void move(int n,int x,int y,int z) | ||
{ | ||
if(n==1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
逻辑不对吧,调试了吗?
@@ -0,0 +1,225 @@ | |||
#include <stdio.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
代码不要写在一个文件内;分成各自的c文件
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们的作业都应该是可以编译、运行的
@@ -0,0 +1,18 @@ | |||
#include<stdio.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
后缀名不对
practices/c/level0/1万你好.c
Outdated
@@ -0,0 +1,7 @@ | |||
#include<stdio.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文件名不能用中文
practices/c/level0/2到100偶数.c
Outdated
{ | ||
int a; | ||
for(a=2;a<=100;a=a+2) | ||
printf("%d ",a); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缩进,加大括号
practices/c/level0/3个数.c
Outdated
if(a>b) | ||
{ | ||
if(a>c) | ||
printf("����Ϊ%d",a); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
main
交晚了 才搞懂