09 2019 档案
摘要:rectangle(src, boundRect[i], Scalar(0, 255, 0));
阅读全文
摘要:1、 (1) 从文件导入数据:ifstream inputstream("D://123.txt"); (2) 获取每行数据:getline( inputstream, text); (3) 获取每行的第一个数据,和剩余数据 (第一个空格前): inputstream >> word; getlin
阅读全文
摘要:1、解释 (1)函数指针指向的是函数而非对象;和其他指针一样,函数指针指向某种特定类型; (2)函数的类型由它的返回类型和形参类型决定,与函数名无关; 2、声明 bool lengthCompare(const string &, const string &) (1) bool (*pf) (co
阅读全文
摘要:#ifdef _WIN32 # define sleep(x) Sleep((x)*1000) #endif 直接影响了后面这个函数,导致参数类型不匹配! ...... boost::this_thread::sleep (boost::posix_time::seconds (1)); .....
阅读全文