Skip to content

L0 有些重复#44

Open
jinshayumi wants to merge 39 commits intoluckymark:masterfrom
jinshayumi:master
Open

L0 有些重复#44
jinshayumi wants to merge 39 commits intoluckymark:masterfrom
jinshayumi:master

Conversation

@jinshayumi
Copy link
Copy Markdown

交晚了 才搞懂

Copy link
Copy Markdown
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.

先看到这里吧

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

不要用中文文件名

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

main函数需要有返回类型

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

缩进+大括号

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

Choose a reason for hiding this comment

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

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

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

Choose a reason for hiding this comment

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

后缀名不对

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

文件名不能用中文

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

缩进,加大括号

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