Skip to content
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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

all #49

wants to merge 8 commits into from

Conversation

NONOThingC
Copy link

补课补学分doge的作业

@NONOThingC NONOThingC changed the title 1--9 all Mar 14, 2019
@NONOThingC NONOThingC closed this Mar 14, 2019
@NONOThingC NONOThingC reopened this Mar 14, 2019
@luckymark
Copy link
Owner

exe等二进制文件,一般不提交到git中;一般来说,凡是可以build生成的文件都不提交到git

@NONOThingC
Copy link
Author

忘记gitnore了

Copy link
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.

厉害!

course-C/PI.cpp Outdated
#define MAX_RANGE /*(2 << 29 - 1)*/ 100000
double arccot(int n,int digit)//所以要怎么控制迭代经度呢?如果用浮点数就会产生问题
{
for()
Copy link
Owner

Choose a reason for hiding this comment

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

还没实现完成吧? 如果是没完成的代码,就不要commit,更不要push了

Copy link
Author

Choose a reason for hiding this comment

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

没有,完成的会弄在level2的文件夹里面,这个course-c文件夹只是暂存。

Copy link
Author

Choose a reason for hiding this comment

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

我的锅,下次把这个文件夹给删除了。。。

@@ -0,0 +1,29 @@
#include <stdio.h>
void get_threeDigit_Number(const int targetnumber,int *digit_number)
Copy link
Owner

Choose a reason for hiding this comment

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

下划线风格或驼峰风格,用一种就好吧;当然全大写的常量用下划线分割一下不错

Copy link
Author

Choose a reason for hiding this comment

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

好的,明白了,谢谢俸爷,以后会注意的

Copy link
Owner

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;
Copy link
Owner

Choose a reason for hiding this comment

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

有重复的味道,请消除之

Copy link
Author

Choose a reason for hiding this comment

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

这里不是重复,是哈夫曼树的初始化,因为变量p和w申明在前面的,所以前面初始化后,后面的指针还可以再用

Copy link
Owner

Choose a reason for hiding this comment

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

我不是指功能重复了,而是指代码重复了;建议看看Martin Fowler的《重构》

Copy link
Author

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++)
Copy link
Owner

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的库。。。还是先把五子棋做完再来看看吧。
Copy link
Owner

Choose a reason for hiding this comment

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

确实,不过就当你自己在实现opencv库吧

@NONOThingC NONOThingC force-pushed the master branch 2 times, most recently from 1039ec2 to e0154d9 Compare March 20, 2019 05:22
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