-
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
all #49
base: master
Are you sure you want to change the base?
all #49
Conversation
exe等二进制文件,一般不提交到git中;一般来说,凡是可以build生成的文件都不提交到git |
忘记gitnore了 |
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.
厉害!
course-C/PI.cpp
Outdated
#define MAX_RANGE /*(2 << 29 - 1)*/ 100000 | ||
double arccot(int n,int digit)//所以要怎么控制迭代经度呢?如果用浮点数就会产生问题 | ||
{ | ||
for() |
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.
还没实现完成吧? 如果是没完成的代码,就不要commit,更不要push了
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.
没有,完成的会弄在level2的文件夹里面,这个course-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.
我的锅,下次把这个文件夹给删除了。。。
level1/p04_ narcissus/narcissus.cpp
Outdated
@@ -0,0 +1,29 @@ | |||
#include <stdio.h> | |||
void get_threeDigit_Number(const int targetnumber,int *digit_number) |
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.
好的,明白了,谢谢俸爷,以后会注意的
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.
不用以后注意了,这次就改掉吧
|
||
for (; i < m; i++, p++) | ||
{ | ||
p->weight = 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.
有重复的味道,请消除之
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.
这里不是重复,是哈夫曼树的初始化,因为变量p和w申明在前面的,所以前面初始化后,后面的指针还可以再用
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.
我不是指功能重复了,而是指代码重复了;建议看看Martin Fowler的《重构》
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.
好,这里我真没理解俸爷的意思,我去看下这本书然后考虑下怎么改掉这里。
p->parent = -1; | ||
} | ||
//构造HUFFMAN TREE | ||
for (i = n; i < m; 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.
与其写一个注释来说明,不如提取为一个函数,再给它个好名字
[神经网络入门](http://blog.csdn.net/zzwu/article/details/574931) | ||
|
||
说实话,用C++写挺麻烦的,数据集也要自己生成。一般来说神经网络倒不是特别难写,不过要借助opencv的库。。。还是先把五子棋做完再来看看吧。 |
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.
确实,不过就当你自己在实现opencv库吧
1039ec2
to
e0154d9
Compare
补课补学分doge的作业