Skip to content

L0 有些重复#44

Open
jinshayumi wants to merge 39 commits into
luckymark:masterfrom
jinshayumi:master
Open

L0 有些重复#44
jinshayumi wants to merge 39 commits into
luckymark: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.

先看到这里吧

Comment thread practices/c/level0/1万你好.c Outdated
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.

不要用中文文件名

Comment thread practices/c/level0/1万你好.c Outdated
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函数需要有返回类型

Comment thread practices/c/level0/1万你好.c Outdated
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.

先看到这里,尽快改改吧

Comment thread practices/c/level1/hanoi
@@ -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之后

Comment thread practices/c/level1/hanoi
#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.

我们的作业都应该是可以编译、运行的

Comment thread hanoi
@@ -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.

后缀名不对

Comment thread practices/c/level0/1万你好.c Outdated
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.

文件名不能用中文

Comment thread practices/c/level0/2到100偶数.c Outdated
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.

缩进,加大括号

Comment thread practices/c/level0/3个数.c Outdated
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