-
Notifications
You must be signed in to change notification settings - Fork 78
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
base: master
Are you sure you want to change the base?
Conversation
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <windows.h> | ||
#define Length 20 |
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.
一般常量用全大写
level1/p03_Diophantus/L1T3.cpp
Outdated
@@ -0,0 +1,31 @@ | |||
### ��̽����������⣺ |
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.
这段markdown在代码里面,能编译过?
level1/p04_ narcissus/L1T4.cpp
Outdated
uni=(med-(hun*100)-dec*10); | ||
nar=hun*hun*hun+dec*dec*dec+uni*uni*uni; | ||
if (nar==med) | ||
printf("%d ",nar); |
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.
注意缩进!
单行代码最好也用大括号抱起来
} | ||
k1--; | ||
} | ||
printf("%d���Բ��Ϊ%d�飡\n", i, count); |
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.
文件的encoding需要用utf-8,这样就不会乱码了
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.