首页 > 其他
OpenCSP开源程序解析之OPENCSP_Alg.cpp
#include ".\opencsp_alg.h"DWORD OPENCSP_Alg::_index = 0;BOOL OPENCSP_Alg::isAlgSupported(ALG_ID algId) //判断algId是否是支持的算法 { for (DWORD i = 0; i < M_OPENCSP_ALG_INFO_NUM; i++) //M_OPENCSP_AL...
分类:其他   时间:2015-06-06 09:13:15    收藏:0  评论:0  赞:0  阅读:209
OpenCSP开源程序解析之OPENCSP_AuthUI.cpp
#include ".\opencsp_authui.h" #include ".\resource.h"extern HINSTANCE g_hModule; // 当前实例MY_DATA_BLOB OPENCSP_AuthUI::_authData; //MY_DATA_BLOB二进制容器INT_PTR OPENCSP_AuthUI::showAuthUI() {//在3...
分类:其他   时间:2015-06-06 09:13:05    收藏:0  评论:0  赞:0  阅读:250
OpenCSP开源程序解析之OPENCSP_Hash.cpp
#include ".\opencsp_hash.h" //HASH函数主要用于完整性校验和提高数字签名的有效OPENCSP_M$CSP* OPENCSP_Hash::_csp; //hKey如果哈希算法是密钥哈希,如HMAC或MAC 算法,就用此密钥句柄传递密钥。对非密钥算法,此参数为NULL OPENCSP_Hash::OPENCSP_Hash(ALG_ID Algid, HC...
分类:其他   时间:2015-06-06 09:12:55    收藏:0  评论:0  赞:0  阅读:292
OpenCSP开源程序解析之OPENCSP_Key.cpp
#include ".\opencsp_key.h" #include ".\opencsp_m$csp.h" #include ".\opencsp_alg.h" OPENCSP_M$CSP* OPENCSP_Key::_csp; OPENCSP_Key::OPENCSP_Key(ALG_ID algId, DWORD dwFlags) :_hKey(0), _...
分类:其他   时间:2015-06-06 09:12:28    收藏:0  评论:0  赞:0  阅读:149
OpenCSP开源程序解析之OPENCSP_M*CSP.cpp
#include ".\opencsp_m$csp.h"OPENCSP_M$CSP* OPENCSP_M$CSP::_instance;OPENCSP_M$CSP::OPENCSP_M$CSP(void) { BOOL fOK = FALSE; fOK = CryptAcquireContext(&_hProv, TEXT("Keyset in MSCSP used by OpenC...
分类:其他   时间:2015-06-06 09:12:13    收藏:0  评论:0  赞:0  阅读:388
clean code 读书笔记一
什么是 clean code ?大神对优雅代码的定义: I like my code to be elegant and efficient. The logic should be straightforward to make it hard for bugs to hide, the dependencies minimal to ease maintenance, error han...
分类:其他   时间:2015-06-06 09:11:55    收藏:0  评论:0  赞:0  阅读:318
OpenCSP开源程序解析之OPENCSP_Main.cpp
#include "OPENCSP_define.h" #include "OPENCSP_Keyset.h" #include "OPENCSP_Provider.h" #include ".\opencsp_cardaccess.h"#pragma data_seg("_OPENCSP_SHARED") /* Two variables are used to OPENCSP_UserM...
分类:其他   时间:2015-06-06 09:11:45    收藏:0  评论:0  赞:0  阅读:393
文章标题
Histeq Enhance contrast using histogram equalization 该函数通过直方图均衡化来增加对比度。Syntax J = histeq(I,hgram)Description Histeq enhances the contrast of images by transforming the values in...
分类:其他   时间:2015-06-06 09:11:35    收藏:0  评论:0  赞:0  阅读:250
OpenCSP开源程序解析之OPENCSP_Mutex.cpp
#include ".\opencsp_mutex.h"unsigned long OPENCSP_UsrMutex::_ulLockCnt(0); DWORD OPENCSP_UsrMutex::_dwProcessId(0); OPENCSP_Mutex OPENCSP_UsrMutex::_dscs;OPENCSP_Mutex::OPENCSP_Mutex() //线程同步 :_sec...
分类:其他   时间:2015-06-06 09:11:32    收藏:0  评论:0  赞:0  阅读:117
sicily 1264(动态规划)
题目链接:sicily 1264解题思路: 状态挺好想的(详见代码),但是得看透这题计算时间开销的本质——预处理,把所有时间开销的可能性处理处理,剩下的就简单了~代码:#include #include #include #include using namespace std;int n,a[105],r; dou...
分类:其他   时间:2015-06-06 09:11:31    收藏:0  评论:0  赞:0  阅读:145
POJ1050 To the MAX 想法题
题意给一个N*N的方阵,找出一个子矩阵,使子矩阵的和最大。(n<=100)思路一维的情况是经典的”最大连续和问题”。我们考虑把二维的问题降到一维来。我们枚举最高的层和最低的层,把他们中间的值都加到一个tmp数组里,然后用tmp数组来做”最大连续和问题”,不断更新ans。那么最后得出的ans一定是最大子矩阵。代码#include #include #inclu...
分类:其他   时间:2015-06-06 09:10:48    收藏:0  评论:0  赞:0  阅读:246
不相交集合的数据结构
不相交集合的数据结构本来想着来实现基于贪婪思想的Kruskal算法—–最小生成树的算法之一。 却发现当我们合并集合时里面还涉及到一个判断“环”的问题,继而有了本篇博文:不相交集合的数据结构。...
分类:其他   时间:2015-06-06 09:09:45    收藏:0  评论:0  赞:0  阅读:246
Matlab图像处理系列3———空间域锐化滤波器
锐化滤波,是将图像的低频部分减弱或去除,保留图像的高频部分,即图像的边缘信息。图像的边缘、轮廓一般位于灰度突变的地方,也就是图像的高频部分,通常用灰度差分提取边缘轮廓。...
分类:其他   时间:2015-06-06 09:09:36    收藏:0  评论:0  赞:0  阅读:1271
LeetCode 83:Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. 简单链表操作,代码如下: /** * ...
分类:其他   时间:2015-06-06 09:09:15    收藏:0  评论:0  赞:0  阅读:234
LeetCode 86 Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in each of...
分类:其他   时间:2015-06-06 09:09:05    收藏:0  评论:0  赞:0  阅读:219
LeetCode 118:Pascal's Triangle
Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] class Solution { publi...
分类:其他   时间:2015-06-06 09:08:55    收藏:0  评论:0  赞:0  阅读:213
HDU 2093(结构体)
考试排名 Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 10495    Accepted Submission(s): 3702 Problem Description C++编程考试使用的实时提交系统,具有即时获得成...
分类:其他   时间:2015-06-06 09:08:46    收藏:0  评论:0  赞:0  阅读:321
LeetCode 119:Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. 题目要求计算杨辉三角某一行的元素,这个也是二项式系数的计算问题。 class Solution { public: vector getRow(int row...
分类:其他   时间:2015-06-06 09:08:35    收藏:0  评论:0  赞:0  阅读:119
项目问题总结1:Nuget无法安装程序包dll,提示:此程序包已安装
问题描述: 我们在做项目的过程中免不了使用Nuget安装一些其他系统发布的dll,以完成我们的业务代码,但是在使用的过程中遇到一个问题,那就是因某些原因造成引用无效,其表现如下: 导致这种情况发生的原因很多,我现在要说的是其中 一种,那就是引用的dll被删除了,我们需要重新在Nuget里面进行安装,这时问题来了,当我们查找到想要的dll时,显示已经安装,如下图所示:...
分类:其他   时间:2015-06-06 09:08:25    收藏:0  评论:0  赞:0  阅读:4617
The Road to Performance Is Littered with Dirty Code Bombs
The Road to Performance Is Littered with Dirty Code BombsKirk PepperdineMORE OFTEN THAN NOT, performance tuning a system requires you to alter code. When we need to alter code, every chunk that is over...
分类:其他   时间:2015-06-06 09:08:15    收藏:0  评论:0  赞:0  阅读:197
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!