C++ 多线程 小记1.定义线程pthread_tpthreadhd2.定义线程函数void*function(void*argc)在C++的类中,普通成员函数不能作为pthread_create的线程函数,如果要作为pthread_create中的线程函数,必须是全局的函数.在此声明是全局函数,不需要必须是static的,但是加上static好处多多,static起到什
C++ 使用Json封装数据和解析数据使用C++和别的语言做交互比较常用的一种数据操作方式就是json。可以到GitHub上下载对应C++的json库源码,我自己下了一套之前的版本,可以正常使用。jsoncpp-src编译出来的库名:json_vc71_libmtd.lib(debug)|json_vc71_libmt.lib(release)需要包含的头文件:jsoncpp-src(对应源码)/include/json(
ZOJ 3329 One Person Game (期望DP)OnePersonGameThereisaverysimpleandinterestingone-persongame.Youhave3dice,namelyDie1,Die2andDie3.Die1hasK1faces.Die2hasK2faces.Die3hasK3faces.Allthedicearefairdice,