cuhkshenzhen / cuhkszlib Goto Github PK
View Code? Open in Web Editor NEWA C++ library created for CUHK(SZ) students.
License: MIT License
A C++ library created for CUHK(SZ) students.
License: MIT License
In this test.
还是用中文说吧,这里字符串里用了unicode字符,但是c++的""和对应的std::string
只能支持1字节的字符,所以unicode字符会被转换成对应的8位整数。但是在windows上,有保护机制防止字符的取值<0(>128),所以这段代码在windows上会报错。
@Yexiaoxing
we now auto deploy documents using travis ci, but if we push changes to our forks, the test will go wrong since it has no permission.
BinomialDistribution.real_theory
/home/travis/build/cuhkshenzhen/CUHKSZLib/tests/random/BinomialDistributionTest.cpp:24: Failure
Expected: (error_sum / 11) < (0.05), actual: 0.051477 vs 0.05
Reproductive on my macOS sometimes.
Should we include third-party package (like libcurl) to implement network functions? If not I would like to remove this feature for now.
Just click the "face" beside the comment and then "+1" is you like the style.
You can also add new styles.
In my opinion, we just implement big integer num, without decimals. What's your opinion, do you think whether it is necessary to implement decimal?
Like what is said in lecture ...
use some macro to implement a better error msg, so that it can know more.
return std::move(output);
The std::move
here can be removed as clang
says. Please refer to Copy Elision.
CUHKSZLib/src/json/json_functions.cpp:34:10: warning: moving a local object in a
return statement prevents copy elision [-Wpessimizing-move]
return std::move(output);
#25
Because the system have a math.h
, we cannot name the header for math
as math.h
. I currently name it mathematics.h
#19 , any suggestion?
Refer this blog:
http://blog.csdn.net/jinzhuojun/article/details/7881049
Generating docs for file src//home/travis/build/cuhkshenzhen/CUHKSZLib/src/include/json/Json.h:277: warning: argument 'index' of command @param is not found in the argument list of JSONObject::at(const std::string &key)
/home/travis/build/cuhkshenzhen/CUHKSZLib/src/include/json/Json.h:282: warning: The following parameters of cuhksz::JSONObject::at(const std::string &key) are not documented:
parameter 'key'
/home/travis/build/cuhkshenzhen/CUHKSZLib/src/include/json/Json.h:285: warning: argument 'index' of command @param is not found in the argument list of JSONObject::at(const std::string &key) const
/home/travis/build/cuhkshenzhen/CUHKSZLib/src/include/json/Json.h:289: warning: The following parameters of cuhksz::JSONObject::at(const std::string &key) const are not documented:
parameter 'key'
/home/travis/build/cuhkshenzhen/CUHKSZLib/src/include/json/Json.h:200: warning: argument 'value' of command @param is not found in the argument list of JSONObject::operator=(T bool_value)
/home/travis/build/cuhkshenzhen/CUHKSZLib/src/include/json/Json.h:207: warning: The following parameters of cuhksz::JSONObject::operator=(T bool_value) are not documented:
parameter 'bool_value'
I've write an error macro, please refactor any related error raising statement.
Also, if you have any suggestions to the error macro (it's now a very simple one), modify it or reply here.
clang-format
.Werror
flagsTODO
Things to do if we decide to make public:
under development
in readme.md
and tagsIf you agree or disagree, please reply below.
@cuhkshenzhen/library-dev
Which license should we use to open-source our code?
Some possible choice:
MIT
WTFPL
Apache
Mozilla
I prefer MIT.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.