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

王瀚 second submission #34

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

王瀚 second submission #34

wants to merge 38 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 27, 2017

修改了一些错误

@@ -0,0 +1,20 @@
#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,不是cpp

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

Choose a reason for hiding this comment

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

加一个空行

#include<stdlib.h>
int main()
{
const int lenth=80;
Copy link
Owner

Choose a reason for hiding this comment

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

常量习惯上采用全大写,单词之间可用下划线分隔;
应该是length吧

{
system("cls");
for (step=1;step<len_now;step++)
printf(" ");
Copy link
Owner

Choose a reason for hiding this comment

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

循环体,即使是单句,也需要大括号

for (step=1;step<len_now;step++)
printf(" ");
printf("R");
if (goBack) len_now--;
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.

1 participant