sofard

导航

2019年2月28日 #

反转字符串

摘要: void reverse(char *group,int i,int j) { char c; while(i<j){ c=group[i]; group[i]=group[j]; group[j]=c; ++i;--j; } } void reverse_list_word(char * grou 阅读全文

posted @ 2019-02-28 15:50 sofard 阅读(133) 评论(0) 推荐(0) 编辑

C++字符串按照指定规则切割的功能模板类,常用的一段检测记录运行时间的代码

摘要: template <typename T> struct vector_split { typedef typename std::vector<T>::iterator its; void operator()(std::vector<T>& data,std::vector<T>& seprat 阅读全文

posted @ 2019-02-28 15:41 sofard 阅读(153) 评论(0) 推荐(0) 编辑

单例模板类

摘要: //单例模板类,C++11能保证函数中的静态成员线程安全 template <typename T> class Singleton { T* value; void create_singleton() { static T t; value =&t; } public: Singleton(): 阅读全文

posted @ 2019-02-28 15:19 sofard 阅读(102) 评论(0) 推荐(0) 编辑

kinect 深度图与彩色图对齐程序

摘要: //#include "duiqi.hpp" #include "kinect.h" #include <iostream> #include "opencv2/opencv.hpp" #include <opencv2/core/core.hpp> #include <opencv2/highgu 阅读全文

posted @ 2019-02-28 15:16 sofard 阅读(1476) 评论(0) 推荐(0) 编辑

C++并发编程学习笔记

摘要: // // main.cpp // test1 // // Created by sofard on 2018/12/27. // Copyright © 2018年 dapshen. All rights reserved. // #include <iostream> #include <thr 阅读全文

posted @ 2019-02-28 15:11 sofard 阅读(179) 评论(0) 推荐(0) 编辑