11 2018 档案

摘要:https://baike.baidu.com/item/CRuntimeClass/1439795?fr=aladdin https://blog.csdn.net/tgdzsjh/article/details/30255733 https://www.cnblogs.com/weiqubo/a 阅读全文
posted @ 2018-11-29 19:02 kuaqi 阅读(191) 评论(0) 推荐(0) 编辑
摘要:getRotationMatrix2D()+warpAffine(); fitLine()拟合曲线:sobel最大X\Y梯度+筛选最大位置+拟合; 阅读全文
posted @ 2018-11-24 17:36 kuaqi 阅读(149) 评论(0) 推荐(0) 编辑
摘要:1.insert; vector<vector<Point>> contour1; vector<vector<Point>> contour2; contour1.insert(contour1.end() ,contour2.begin() ,contour2.end() ); 阅读全文
posted @ 2018-11-24 16:58 kuaqi 阅读(118) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/thanklife/article/details/70208841 USES_CONVERSION的使用和注意 1. 使用ATL的W2A和A2W宏必须使用USES_CONVERSION2. USES_CONVERSION是用来转换类型的,比如我们很常见的 阅读全文
posted @ 2018-11-24 00:15 kuaqi 阅读(555) 评论(0) 推荐(0) 编辑
摘要:字符串string转换为其它数据类型 int atoi(const char *nptr); string str="123456"; temp=str.c_str(); 1)短整型(int)i = atoi(temp);2)长整型(long)l = atol(temp);3)浮点(double)d 阅读全文
posted @ 2018-11-22 19:30 kuaqi 阅读(848) 评论(0) 推荐(0) 编辑
摘要:// Cast a dynamically allocated string to 'void*'. void *vp = static_cast<void*>(new std::string("it's easy to break stuff like this!")); // Then, in 阅读全文
posted @ 2018-11-22 19:13 kuaqi 阅读(204) 评论(0) 推荐(0) 编辑
摘要:string、char[]、char*、const char*; 输出都一样 printf只能输出c语言中的内置数据,string不是c语言内置数据; cout可以输出string字符串,是因为string中重载了“<<”操作符; printf_s("%s\n", arrc); \\char[]pr 阅读全文
posted @ 2018-11-22 19:09 kuaqi 阅读(249) 评论(0) 推荐(0) 编辑
摘要:在处理LPTSTR或LPCTSTR的时候,应该使用_tcslen来替代strlen函数。否则,在Unicode编码方式下,strlen不能处理wchar_t*的字符串。 阅读全文
posted @ 2018-11-22 18:55 kuaqi 阅读(406) 评论(0) 推荐(0) 编辑
摘要:格式: CString cstr.AppendFormat(_T(" %.4f "), ); 输出: (1) https://blog.csdn.net/overlord_bingo/article/details/60140224 不含中文的情况下: CString s("hello world" 阅读全文
posted @ 2018-11-22 18:25 kuaqi 阅读(247) 评论(0) 推荐(0) 编辑
摘要:模板声明只能在全局、命名空间、或类范围内使用; 阅读全文
posted @ 2018-11-19 18:43 kuaqi 阅读(103) 评论(0) 推荐(0) 编辑
摘要:cin 遇到空格完成单个数据传入,不退出; 遇到回车'\n'退出; 阅读全文
posted @ 2018-11-19 11:17 kuaqi 阅读(445) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/wanghetao/p/4492582.html https://www.cnblogs.com/Dageking/p/3185230.html http://www.cnblogs.com/catch/p/4314256.html:初始化 https 阅读全文
posted @ 2018-11-18 19:03 kuaqi 阅读(2538) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/songdanzju/p/7422380.html https://blog.csdn.net/chudongfang2015/article/details/76326115 https://www.cnblogs.com/Dageking/p/31 阅读全文
posted @ 2018-11-17 23:39 kuaqi 阅读(381) 评论(0) 推荐(0) 编辑
摘要:导入lib与双重设置头文件(生成dll和exe调用dll时) #ifndef AAA#ifdef BB_API :BB_API可以放在生成dll的cpp中#define AAA __declspec(dllexport)#else#define AAA __declspec(dllimport)#p 阅读全文
posted @ 2018-11-17 20:13 kuaqi 阅读(233) 评论(0) 推荐(0) 编辑
摘要:uint32_t是C/C++ 标准中定义的类型。 而uint32是 某些 编译器定义的别名,以方便使用。类似: uint32_t 比 uint32的可移植性更好 。 阅读全文
posted @ 2018-11-16 17:00 kuaqi 阅读(14500) 评论(0) 推荐(0) 编辑
摘要:1.c_str 返回值是const char*,不能直接赋值给char*; 如果改变了string对象s的内容;s.c_str指向的内容也会改变; char* c; string s="1234"; c = s.c_str(); //c最后指向的内容是垃圾,因为s对象被析构,其内容被处理 应该这样用 阅读全文
posted @ 2018-11-15 19:15 kuaqi 阅读(203) 评论(0) 推荐(0) 编辑
摘要:C/C++ 中关于以下三种定义: const char *ptr; 不可以通过该指针改变指向内容;可以指向别的内容; char const *ptr; 同上; char* const ptr; 指针指向固定;指向内容可以改变; const char* const ptr; 现整理三者之间的区别与联系 阅读全文
posted @ 2018-11-15 18:26 kuaqi 阅读(459) 评论(0) 推荐(0) 编辑
摘要:1. 如果你认为你的程序可能在Unicode的环境下运行,那么开始在意用 Unicode 编码。比如说,不要用 sizeof() 操作符来获得字符串的长度,因为在Unicode环境下就会有2倍的误差。我们可以用一些方法来隐藏Unicode的一些细节,比如在我需要获得字符长度的时候,我会用一个叫做DI 阅读全文
posted @ 2018-11-09 11:32 kuaqi 阅读(232) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示