会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zebra_彬
博客园
首页
新随笔
联系
订阅
管理
2021年2月3日
docker ubuntu中文乱码
摘要: docker ubuntu18.04 使用cat查看中文正常,使用vim查看中文乱码。 解决此问题需要修改“/etc/profile”文件。 1、修改前查看本地使用的语言环境: locale 2、查看本地支持的语言环境: locale -a 3、然后将“/etc/profile”文件的结尾添加上“e
阅读全文
posted @ 2021-02-03 15:25 zebra_彬
阅读(534)
评论(0)
推荐(0)
2021年1月8日
C# 检测某版本VC++是否安装
摘要: 一、根据微软的产品号GUID,调用msi.dll class Program { static void Main(string[] args) { if (GetProcuct("{GUID}") == INSTALLSTATE.INSTALLSTATE_DEFAULT) { //操作 } } [
阅读全文
posted @ 2021-01-08 14:46 zebra_彬
阅读(1698)
评论(0)
推荐(0)
2020年11月11日
C# 简单的对称加密
摘要: const string KEY_64 = "HuidTeac";//注意了,是8个字符 const string IV_64 = "HuidTeac"; public static string Encode(string data) { byte[] byKey = System.Text.AS
阅读全文
posted @ 2020-11-11 09:40 zebra_彬
阅读(1461)
评论(0)
推荐(0)
2020年9月28日
C++ Opencv图像直方图
摘要: Mat image = imread("D:/ju.jpg"); imshow("素材图", image); int bins = 256; //直条为256 int hist_size[] = { bins }; float range[] = { 0,256 }; const float* ra
阅读全文
posted @ 2020-09-28 15:50 zebra_彬
阅读(832)
评论(0)
推荐(0)
2020年9月26日
C++ template模板编程
摘要: 模板是C++泛型编程的基础,一个模板就是一个创建类或者函数的蓝图或者公式。当使用一个vector这样的泛型类型,我们提供足够的信息,就可以将蓝图转换成特定的类或者函数。 假设我们编写一个函数来比较两个值。 int compare(const string &v1,const string &v2)
阅读全文
posted @ 2020-09-26 00:22 zebra_彬
阅读(299)
评论(0)
推荐(0)
2020年9月14日
C++ 计算MD5
摘要: 头文件: #pragma once #ifndef MD5_H #define MD5_H #include <string> #include <fstream> /* Type define */ typedef unsigned char byte; typedef unsigned int
阅读全文
posted @ 2020-09-14 10:58 zebra_彬
阅读(616)
评论(0)
推荐(1)
2020年8月21日
C++ leetcode接雨水
摘要: 双指针算法“接雨水” 链接:https://leetcode-cn.com/problems/trapping-rain-water/ 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 上面是由数组 [0,1,0,2,1,0,1,3,2,1,2,1]
阅读全文
posted @ 2020-08-21 11:54 zebra_彬
阅读(487)
评论(0)
推荐(0)
C++ 三数之和
摘要: 来自leecode做题时,发现的双指针用法,觉得挺有意思所以记录一下 链接:https://leetcode-cn.com/problems/3sum 题目: 给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?请你找出所有
阅读全文
posted @ 2020-08-21 10:08 zebra_彬
阅读(1034)
评论(0)
推荐(0)
2020年8月19日
C++ 保存读取二进制
摘要: 一、保存二进制 #include <iostream> #include <fstream> int main(){ float* output = new float[100](); ofstream fout("test.bin", ios::binary); fout.write((char
阅读全文
posted @ 2020-08-19 14:53 zebra_彬
阅读(1981)
评论(0)
推荐(0)
2020年8月18日
流媒体 Ubuntu部署srs、windows部署nginx
摘要: 一、获取项目//码云克隆git clone https://gitee.com/winlinvip/srs.oschina.git srs//githubgit clone https://github.com/ossrs/srs.git二、进入trrunkcd trunk三、编译./configu
阅读全文
posted @ 2020-08-18 23:56 zebra_彬
阅读(790)
评论(0)
推荐(0)
下一页
公告