Skip to content

樊捷明 cpp1~9 + 打飞机游戏#32

Open
ffjmmm wants to merge 11 commits intoluckymark:masterfrom
ffjmmm:master
Open

樊捷明 cpp1~9 + 打飞机游戏#32
ffjmmm wants to merge 11 commits intoluckymark:masterfrom
ffjmmm:master

Conversation

@ffjmmm
Copy link
Copy Markdown

@ffjmmm ffjmmm commented Feb 27, 2017

加入了打飞机游戏

Copy link
Copy Markdown
Owner

@luckymark luckymark left a comment

Choose a reason for hiding this comment

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

先看到这里吧

printf(" ");
}
puts(ch);
usleep(50000);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

缩进对齐


char ch[N];

void runLetter(int n) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

前面只写函数原型,函数的实现放到后面去

}

int checkRight(int t) {
return t <= 80 - strlen(ch);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

80应该定义一个常量


int main() {
printf("Input the word or letter:\n");
gets(ch);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

缩进对齐

@ffjmmm ffjmmm changed the title 樊捷明 Level1 1~6 樊捷明 Level1全部 Mar 16, 2017
Copy link
Copy Markdown
Owner

@luckymark luckymark left a comment

Choose a reason for hiding this comment

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

做得不错,再改改就可以merge了哈

int isPrime(int x);
void init();

struct data {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

此处data是类型名,建议改为:Data

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Data没有说明作用,最好改个名字;
a,b,c是什么意思,名字不好

printf(" 1:显示存货列表\n 2:入库\n 3:出库\n 0:退出程序\n");
int k;
scanf("%d",&k);
if (k == 0) {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

这里用switch更舒服

@ffjmmm ffjmmm changed the title 樊捷明 Level1全部 樊捷明 Level1+Cpp 1~6 May 10, 2017
@ffjmmm ffjmmm changed the title 樊捷明 Level1+Cpp 1~6 樊捷明 加入了打飞机游戏 Jun 18, 2017
@ffjmmm ffjmmm changed the title 樊捷明 加入了打飞机游戏 樊捷明 cpp1~9 + 打飞机游戏 Jun 23, 2017
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.

2 participants