c++
哈哈哈哈哈哈哈哈哈...........
知识在于继承
展开
-
vs2015 + opencv 配置
1.vs2015配置1.解压opencv-3.4.1-vc14_vc15.exe到c:\2.vs2015选x643.包含目录 c:\opencv\build\include c:\opencv\build\include\opencv c:\opencv\build\include\opencv24.库文件 c:\opencv\build\x64\vc14\lib5.输入...原创 2020-03-17 16:12:23 · 173 阅读 · 0 评论 -
[C++]使用opencv获取视频帧
extractFrames.cpp/**** this file is used to extract frames from video* Copyright (c) 2017, Sanjun Liu, email: Sunite.liu@gmail.com* All rights reserved*/#include <opencv2/core/core.hpp>#i...原创 2020-03-17 16:05:52 · 4329 阅读 · 0 评论 -
zlib库的使用,可以压缩和解压文件夹
zipHelper.h#pragma once#ifndef ZIP_H#define ZIP_H#include <iostream>#include <fstream>#include <string>#include <io.h>#include <direct.h>#include "zlib\unzip.h...原创 2020-03-15 23:16:03 · 5096 阅读 · 1 评论 -
C++修改系统环境变量
#include <iostream>#include <Windows.h>using namespace std;/* 0: ok-1: error*/int addEnvPath(string envKey, string envValue) { HKEY hKey; const char *key = "Environment"; DWOR...原创 2020-03-14 17:01:10 · 2398 阅读 · 3 评论 -
gnupg使用示例
0.安装# Debian / Ubuntu 环境sudo apt-get install gnupg# Fedora 环境yum install gnupg# windows环境https://files.gpg4win.org/gpg4win-3.1.11.exe1.生成新的密钥对gpg --gen-key2.生成吊销证书gpg --output revoke....原创 2020-03-10 02:26:01 · 476 阅读 · 0 评论 -
wrap_function
#include <iostream>template <typename T> class funct_wrap0{public: funct_wrap0(T (&f_)()):f(f_){} T operator()() const { return f(); }private: T (&f)();};templa...原创 2020-03-01 14:40:34 · 1514 阅读 · 0 评论 -
is_function
#include <iostream>template<typename T>struct is_function { static const bool value = false;};template<typename T>struct is_function<T(void)> { static const bool...原创 2020-03-01 13:26:21 · 420 阅读 · 0 评论 -
abs,max,min
#include <iostream>template <long x, typename enabled=void>struct tabs { const static long value = x; };template <long x>struct tabs<x,typename enable_if_c<(x < 0)>...原创 2020-03-01 10:25:29 · 198 阅读 · 0 评论 -
is_unsigned_type,is_unsigned_type,copy_functor
#include <iostream>template <typename T>struct is_unsigned_type{ static const bool value = static_cast<T>((static_cast<T>(0)-static_cast<T>(1))) > 0;};...原创 2020-03-01 09:53:30 · 192 阅读 · 0 评论 -
if both of its arguments are actually references to the same object
#include <iostream>template <bool B, class T = void>struct enable_if_c { typedef T type;};template <class T>struct enable_if_c<false, T> {};template <class Con...原创 2020-03-01 09:34:47 · 113 阅读 · 0 评论 -
if one type is convertible into another type.
#include <iostream>template <typename from, typename to>struct is_convertible{ struct yes_type { char a; }; struct no_type { yes_type a[2]; }; static const from& from_h...原创 2020-02-29 22:55:33 · 91 阅读 · 0 评论