-
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
王瀚 second submission #34
base: master
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,20 @@ | |||
#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,不是cpp
@@ -0,0 +1,20 @@ | |||
#include<stdio.h> | |||
#include<stdlib.h> | |||
int 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.
加一个空行
#include<stdlib.h> | ||
int main() | ||
{ | ||
const int lenth=80; |
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.
常量习惯上采用全大写,单词之间可用下划线分隔;
应该是length吧
{ | ||
system("cls"); | ||
for (step=1;step<len_now;step++) | ||
printf(" "); |
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.
循环体,即使是单句,也需要大括号
for (step=1;step<len_now;step++) | ||
printf(" "); | ||
printf("R"); | ||
if (goBack) len_now--; |
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.
大括号
修改了一些错误