Skip to content

再次尝试#43

Open
ahadou wants to merge 12 commits intoluckymark:masterfrom
ahadou:master
Open

再次尝试#43
ahadou wants to merge 12 commits intoluckymark:masterfrom
ahadou:master

Conversation

@ahadou
Copy link
Copy Markdown

@ahadou ahadou commented Mar 1, 2017

No description provided.

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.

先看到这里吧

@@ -0,0 +1,24 @@
#include<stdio.h>
#include<windows.h>
void main()
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.

加个空行,好看

void main()
{
int i,j;
for (i = 0;i < 80;i++){
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.

循环变量放进去

printf("R");

}
for (i = 80;i >= 0;i--){
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应该定义一个常量


}
for (i = 80;i >= 0;i--){
Sleep(50);
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.

重复的味道,请消除之

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.

先看到这里吧,等你改一轮,我再接着看吧

#include<windows.h>
#define boundry 80

int i = 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.

i也做成全局变量,有点过分吧


int i = 0;
void move();
void main()
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.

加一个空行

}

if (i > j + 1)
printf("%d is not a Prime.", i);
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.

加个大括号

@@ -0,0 +1,122 @@
##define _CRT_SECURE_NO_WARNINGS//����̵�
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.

中文乱码了,源文件最好用utf-8编码

#include<stdio.h>
#include<stdlib.h>

void turnup();
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.

单词之间用下划线分隔一下,或者用驼峰命名也不错

void show();

char A[22][22];
char *p;
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.

这几个变量不宜为全局变量

void turnright();
void show();

char A[22][22];
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.

A这个名字是什么意思呢?

@@ -0,0 +1,25 @@
#include<stdio.h>
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.

allPrimes.c 是什么鬼?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

改多了改着改着就手误了,不好意思啊俸爷,马上改

@@ -0,0 +1,25 @@
#include<stdio.h>
#include<windows.h>
#define boundry 80
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.

习惯上常数用全大写

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.

先看到这里

@@ -0,0 +1,28 @@
#include<stdio.h>
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.

这个程序是什么鬼?

@@ -0,0 +1,224 @@
#define _CRT_SECURE_NO_WARNINGS
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.

warehousu.c 文件名拼写错咯

}
}

void remote()
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.

remote是什么意思?

public:
void show();
void append(int num);
int pop();
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.

缩进对齐

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