-
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
刘鑫宇 level 1 全部 #33
Open
aa01111
wants to merge
92
commits into
luckymark:master
Choose a base branch
from
aa01111:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
刘鑫宇 level 1 全部 #33
Changes from 1 commit
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
c6c9e0c
level 1 前六题
aa01111 b6308c6
Revert "level 1 前六题"
aa01111 2c6c53d
刘鑫宇 level1 7-12
aa01111 2f12c08
1-6题
aa01111 d263630
移动飞机功能
aa01111 7bff02c
越界处理
aa01111 7893ee8
Delete Plane.cpp
aa01111 5c7c82c
Delete Plane.h
aa01111 e69abe8
Delete main.cpp
aa01111 dda3920
增加发射炮弹功能
aa01111 78f1572
Revert "增加发射炮弹功能"
aa01111 d576863
Add files via upload
aa01111 3051407
碰撞处理
aa01111 176a24b
Create 1
aa01111 1810cbb
Delete 1
aa01111 d17f33e
Create 1
aa01111 837c852
Merge remote-tracking branch 'origin/master'
aa01111 8283fb1
Delete Bullet.cpp
aa01111 88c791f
Delete targetver.h
aa01111 d99abff
Delete Bullet.h
aa01111 489e1a3
Delete stdafx.h
aa01111 75d8c8a
Delete Enemy.cpp
aa01111 cdcec9b
Delete Enemy.h
aa01111 b517135
Delete stdafx.cpp
aa01111 78187dd
Delete main.cpp
aa01111 6909b36
Delete game.h
aa01111 747ca6e
Delete ObjectManager.cpp
aa01111 23c6346
Delete ObjectManager.h
aa01111 5eea769
Delete game.cpp
aa01111 127420f
Delete burst.h
aa01111 52576d7
Delete burst.cpp
aa01111 e014af0
Delete Plane.cpp
aa01111 b0d1268
Delete ReadMe.txt
aa01111 3836b37
Delete Plane.h
aa01111 42d9860
3
aa01111 b42aa0e
Merge branch 'master' of https://github.com/aa01111/CCpp2017
aa01111 b85d519
显示字符串
aa01111 b4d248e
Delete ReadMe.txt
aa01111 ead21db
添加敌机子弹
aa01111 32fe649
Create 2
aa01111 ad07009
删除冗余文件
aa01111 8f6f3fb
cpp level1 2
aa01111 e63c36a
Create 3
aa01111 e766108
Create 5,6
aa01111 aaf0236
Create Cpp level1 7
aa01111 92a7b0a
Delete Cpp level1 7
aa01111 6905c70
Create 7
aa01111 82a7fdf
一部分c++早期作业
aa01111 bf33b4f
Create Cpp level1 1
aa01111 45ba910
Delete Cpp level1 1
aa01111 f93a6e0
Create 1
aa01111 0a91c29
队列
aa01111 b5127bc
添加背景
aa01111 3776ebf
过关控制和最终完成
aa01111 ac571b8
Update TodoList.md
aa01111 602489f
Update TodoList.md
aa01111 82bad1d
Update TodoList.md
aa01111 0e63ba1
Update TodoList.md
aa01111 70497cc
Update TodoList.md
aa01111 8ed0745
Update TodoList.md
aa01111 e878bf4
Update TodoList.md
aa01111 f1acb8a
Update TodoList.md
aa01111 02d5ab2
Update TodoList.md
aa01111 449daf1
Update TodoList.md
aa01111 dccc9ae
Update TodoList.md
aa01111 27090aa
Update TodoList.md
aa01111 0943c1a
Update TodoList.md
aa01111 97047ab
Update TodoList.md
aa01111 59b8d4e
Update TodoList.md
aa01111 8616c0f
Update TodoList.md
aa01111 3da31eb
Update TodoList.md
aa01111 c49e511
Update TodoList.md
aa01111 805daec
Update TodoList.md
aa01111 7b4a625
Update TodoList.md
aa01111 738c732
Update TodoList.md
aa01111 6d58615
Update TodoList.md
aa01111 b4cd164
Update TodoList.md
aa01111 ba5816f
Update TodoList.md
aa01111 e859dab
Update TodoList.md
aa01111 aec71d3
Update TodoList.md
aa01111 b1ff281
Update TodoList.md
aa01111 49f8baa
Update TodoList.md
aa01111 3662b26
Update TodoList.md
aa01111 4e25937
Update TodoList.md
aa01111 dbd08ca
Update TodoList.md
aa01111 e204ec9
Update TodoList.md
aa01111 f2bb94c
Update TodoList.md
aa01111 a7f4099
Update TodoList.md
aa01111 f85248d
Update TodoList.md
aa01111 ed566e1
Delete TodoList.md
aa01111 22cb6e7
重写todolist
aa01111 f2ad595
new todolist
aa01111 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <windows.h> | ||
|
||
/* run this program using the console pauser or add your own getch, system("pause") or input loop */ | ||
|
||
|
||
int main() { | ||
system("mode con cols=80 lines=20"); | ||
int x=0,y=0,mark=0; | ||
while(1) | ||
{ | ||
int i; | ||
for(i=0;i<x;i++) | ||
printf(" "); | ||
printf("r"); | ||
(mark%2==0)?x++:x--; | ||
if(x==0||x==80) | ||
{ | ||
mark++; | ||
} | ||
Sleep(30); | ||
system("cls"); | ||
|
||
} | ||
system("pause"); | ||
return 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
int main() | ||
{ | ||
int num,mark=0,i; | ||
printf("����һ�����ڶ�������"); | ||
scanf("%d", &num); | ||
for (i=2;i<num;i++) | ||
{ | ||
if (num % i == 0) | ||
{ | ||
printf("%d��������", num); | ||
mark = 1; | ||
break; | ||
} | ||
} | ||
|
||
if (mark == 0) | ||
{ | ||
printf("%d������", num); | ||
} | ||
system("pause"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
int main() | ||
{ | ||
for (float i = 0; i < 100; i++) | ||
{ | ||
float as_child = i / 6; | ||
float as_tee = i / 12; | ||
float live_alone = i / 7; | ||
float get_son = 5; | ||
float son_live = i / 2; | ||
if (as_child + as_tee + live_alone + get_son + son_live + 4 == i) | ||
printf("%f", i); | ||
} | ||
system("pause"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
int main() | ||
{ | ||
int units, tens, hundreds; | ||
for (int i = 100; i < 999; i++) | ||
{ | ||
hundreds = i / 100; | ||
tens = i / 10 %10; | ||
units = i % 100 %10; | ||
if (i == hundreds*hundreds*hundreds + tens*tens*tens + units*units*units) | ||
printf("%d ", i); | ||
} | ||
system("pause"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include<stdio.h> | ||
#include<stdlib.h> | ||
#include<time.h> | ||
#include<math.h> | ||
int main(){ | ||
printf("2 3 "); | ||
double start, finish; | ||
start = clock(); | ||
for (int j = 2; j <= 1000; j++) | ||
for (int i = 2; i <= sqrt(j); i++) | ||
{ | ||
|
||
if (j%i == 0) | ||
{ | ||
break; | ||
} | ||
if (i == (int)sqrt(j)) | ||
{ | ||
printf("%d ",j); | ||
} | ||
} | ||
finish = clock(); | ||
printf(" %f seconds\n", (finish - start) / CLOCKS_PER_SEC); | ||
system("pause"); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <math.h> | ||
void Goldbach(); | ||
|
||
int main() | ||
{ | ||
Goldbach(); | ||
system("pause"); | ||
return 0; | ||
} | ||
|
||
void Goldbach() { | ||
int mark_prime1 = 0, mark_prime2 = 0; | ||
for (int i = 2; i <= 100; i = i + 2) | ||
for (int j = 2; j < i; j++) | ||
{ | ||
for (int k = 2; k <= sqrt(j); k++) | ||
{ | ||
mark_prime1 = 0; | ||
if (j%k == 0) | ||
{ | ||
mark_prime1 = 1; | ||
break; | ||
} | ||
|
||
} | ||
if (mark_prime1 == 0) | ||
{ | ||
int ano_pri = i - j; | ||
for (int k = 2; k <= sqrt(ano_pri); k++) | ||
{ | ||
mark_prime2 = 0; | ||
if (ano_pri%k == 0) | ||
{ | ||
mark_prime2 = 1; | ||
break; | ||
} | ||
} | ||
if (mark_prime2 == 0) | ||
{ | ||
printf("%d+%d=%d ", j, ano_pri, i); | ||
} | ||
|
||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
缩进有点乱!
是不是混用了tab和空格呢?