Skip to content
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

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open

L0 有些重复 #44

wants to merge 39 commits into from

Conversation

jinshayumi
Copy link

交晚了 才搞懂

Copy link
Owner

@luckymark luckymark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先看到这里吧

@@ -0,0 +1,7 @@
#include<stdio.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要用中文文件名

@@ -0,0 +1,7 @@
#include<stdio.h>
main()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

main函数需要有返回类型

{
int i;
for(i=1;i<=10000;i++)
printf("hello ");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

缩进+大括号

Copy link
Owner

@luckymark luckymark left a 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)
Copy link
Owner

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)
Copy link
Owner

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>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

代码不要写在一个文件内;分成各自的c文件

Copy link
Owner

@luckymark luckymark left a 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>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后缀名不对

@@ -0,0 +1,7 @@
#include<stdio.h>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文件名不能用中文

{
int a;
for(a=2;a<=100;a=a+2)
printf("%d ",a);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

缩进,加大括号

if(a>b)
{
if(a>c)
printf("����Ϊ%d",a);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants