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

完成了running letter #32

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
bec1370
完成了running letter
Mar 2, 2019
3f73640
Level 1 Exercise 2
C-ice-y Mar 20, 2019
2ac63b7
Level 1Exercise 3
C-ice-y Mar 20, 2019
bf75807
Level 1 Exercise 4
C-ice-y Mar 20, 2019
e26d96d
Level1 Exercise 1 update
C-ice-y Mar 20, 2019
5f014e1
level1 Exercise5
C-ice-y Mar 25, 2019
2356fcb
Update README.md
C-ice-y Mar 25, 2019
4cdf1fc
Level1 Exercise6
C-ice-y Mar 25, 2019
bd24ae4
Update L1T4.cpp
C-ice-y Mar 27, 2019
1ec64ee
Update L1T5.cpp
C-ice-y Mar 27, 2019
9da8788
Update L1T3.cpp
C-ice-y Mar 27, 2019
549129c
Exercise L1T8
C-ice-y Apr 3, 2019
5f1fe82
Update README.md
C-ice-y Apr 3, 2019
3f3305a
Add files via upload
C-ice-y Jun 23, 2019
7e340fa
Add files via upload
C-ice-y Jun 23, 2019
d214aba
Add files via upload
C-ice-y Jun 23, 2019
dc210c8
Add files via upload
C-ice-y Jun 23, 2019
2b737f7
Create FiveChess
C-ice-y Jun 23, 2019
2530e96
Delete FiveChess
C-ice-y Jun 23, 2019
c9d8dfc
Add files via upload
C-ice-y Jun 23, 2019
da9cf3b
Delete 五子棋txt.txt
C-ice-y Jun 23, 2019
fbcfb3e
Delete thoughts of WUZIQI.txt
C-ice-y Jun 23, 2019
d3243b1
Add files via upload
C-ice-y Jun 23, 2019
ad0faa3
Add files via upload
C-ice-y Jun 23, 2019
244422f
Delete mazeutf.txt
C-ice-y Jun 26, 2019
67c075d
Add files via upload
C-ice-y Jun 26, 2019
517d040
Delete 推箱子utf.txt
C-ice-y Jun 26, 2019
da4f9c9
Add files via upload
C-ice-y Jun 26, 2019
9412054
Delete 链表.txt
C-ice-y Jun 26, 2019
9fae957
Add files via upload
C-ice-y Jun 26, 2019
650d8d0
Delete utf超市.txt
C-ice-y Jun 26, 2019
ad232b9
Add files via upload
C-ice-y Jun 26, 2019
d3ec29a
Add files via upload
C-ice-y Jun 26, 2019
07311d7
Update 五子棋txt.txt
C-ice-y Jun 26, 2019
a8d0c59
Update 五子棋txt.txt
C-ice-y Jun 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions level1/p01_runningLetter/L1T1.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#define Length 20
Copy link
Owner

Choose a reason for hiding this comment

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

一般常量用全大写


int main ()
{
int a=0;
int b=1;
while(1)
{
a+=b;
system("cls");
int i=0;
while(i<a)
{
printf(" ");
i++;
}
printf("H");
Sleep(100);
if(a==Length)
{
b=-1;
}
if(a==0)
{
b=1;
}
}
return 0;
}