-
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
再次尝试 #43
base: master
Are you sure you want to change the base?
再次尝试 #43
Conversation
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.
先看到这里吧
@@ -0,0 +1,24 @@ | |||
#include<stdio.h> | |||
#include<windows.h> | |||
void main() |
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.
加个空行,好看
void main() | ||
{ | ||
int i,j; | ||
for (i = 0;i < 80;i++){ |
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.
循环变量放进去
printf("R"); | ||
|
||
} | ||
for (i = 80;i >= 0;i--){ |
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.
80应该定义一个常量
|
||
} | ||
for (i = 80;i >= 0;i--){ | ||
Sleep(50); |
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.
重复的味道,请消除之
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.
先看到这里吧,等你改一轮,我再接着看吧
#include<windows.h> | ||
#define boundry 80 | ||
|
||
int i = 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.
i也做成全局变量,有点过分吧
|
||
int i = 0; | ||
void move(); | ||
void main() |
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.
加一个空行
} | ||
|
||
if (i > j + 1) | ||
printf("%d is not a Prime.", i); |
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.
加个大括号
@@ -0,0 +1,122 @@ | |||
##define _CRT_SECURE_NO_WARNINGS//����̵� |
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.
中文乱码了,源文件最好用utf-8编码
#include<stdio.h> | ||
#include<stdlib.h> | ||
|
||
void turnup(); |
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.
单词之间用下划线分隔一下,或者用驼峰命名也不错
void show(); | ||
|
||
char A[22][22]; | ||
char *p; |
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.
这几个变量不宜为全局变量
void turnright(); | ||
void show(); | ||
|
||
char A[22][22]; |
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.
A这个名字是什么意思呢?
@@ -0,0 +1,25 @@ | |||
#include<stdio.h> |
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.
allPrimes.c 是什么鬼?
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.
改多了改着改着就手误了,不好意思啊俸爷,马上改
@@ -0,0 +1,25 @@ | |||
#include<stdio.h> | |||
#include<windows.h> | |||
#define boundry 80 |
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.
习惯上常数用全大写
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.
先看到这里
@@ -0,0 +1,28 @@ | |||
#include<stdio.h> |
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.
这个程序是什么鬼?
@@ -0,0 +1,224 @@ | |||
#define _CRT_SECURE_NO_WARNINGS |
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.
warehousu.c 文件名拼写错咯
} | ||
} | ||
|
||
void remote() |
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.
remote是什么意思?
public: | ||
void show(); | ||
void append(int num); | ||
int pop(); |
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.
缩进对齐
No description provided.