-
Notifications
You must be signed in to change notification settings - Fork 78
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
完成了running letter #39
base: master
Are you sure you want to change the base?
Changes from 4 commits
8eb2d34
b2e0505
40bf705
d990c53
dca4794
7989b9a
7842731
7f6cc5a
0571f54
eee8132
b1e16a8
0702f25
5f21e43
f55e5d6
a19d2e6
62e6429
cb2e874
a9fe63d
4a54655
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include<stdio.h> | ||
#define WIDTH 119 | ||
int main() | ||
{ | ||
int r=0,i=0,j=0; | ||
while(1) | ||
{ | ||
for(i=0;i<WIDTH;i++) | ||
{ | ||
for(j=0;j<=i;j++)printf(" "); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 缩进不对 |
||
printf("R"); | ||
system("cls"); | ||
} | ||
for(i=WIDTH-1;i>=0;i--) | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这两段代码有点像,请尝试消除重复部分 |
||
for(j=i-1;j>=0;j--)printf(" "); | ||
printf("R"); | ||
system("cls"); | ||
} | ||
} | ||
return 0; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include<stdio.h> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个文件删掉吧 |
||
int main() | ||
{ | ||
printf("hello world"); | ||
return 0; | ||
} |
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