码迷,mamicode.com
首页 >  
搜索关键字:null    ( 33914个结果)
如何将USBKey中的证书注册到Windows系统中
本篇文章就介绍一下如何使用微软CAPI接口完成将USBKey中的证书注册到Windows系统中。(1)获取CSP句柄。CryptAcquireContext(&hTokenProv,NULL,“EnterSafe ET199Auto CSP V1.0”,PROV_RSA_FULL,NULL)(2)获...
分类:Windows程序   时间:2015-03-08 12:59:04    阅读次数:238
单例模式 demo
// 用单例模式实现自定义颜色类 public class MyColor { private static MyColor _redColor = null; public static MyColor GetRedColor()//获取红色实例 ...
分类:其他好文   时间:2015-03-08 12:57:27    阅读次数:165
linq 日期分组统计
#regionstringCondition(DateTimedate,stringtype){if(date==null){date=DateTime.MinValue;}if(type=="day"){returndate.ToString("yyyy-M-d");}elseif(type=="...
分类:其他好文   时间:2015-03-08 11:43:20    阅读次数:124
Intersection of Two Linked Lists
存在两个单向链表,如果两者在某个节点相交合并,则返回交点,不相交则返回null。 思路:如果两个链表长度相等,则两个指针依次前进,到结尾之前如果遇到val值相等,则返回该节点。如果不相等,则长的那个链表先走若干步,使得剩下的步数与短的链表的步数相同。 注意点 空指针 由于是单链表,需要保存链表头 c...
分类:其他好文   时间:2015-03-08 11:35:39    阅读次数:119
c语言文件操作——复制文件
//用于拷贝文件#include #include#include int main(){ FILE *fp_from=NULL; //定义文件指针 FILE *fp_to=NULL; int len; //获取文件长度 char *ch=NULL; //缓存buffer if ...
分类:编程语言   时间:2015-03-08 10:25:04    阅读次数:191
软件工程随堂作业--随机产生30到四则运算(c语言)
1 #include "stdio.h" 2 #include "math.h" 3 #include "stdlib.h" 4 #include"time.h" 5 int main() 6 { 7 srand(time(NULL)); 8 int a,b,c,i; 9 ...
分类:编程语言   时间:2015-03-08 09:19:09    阅读次数:167
网络编程(一)
get 方法实例: String url="http://202.194.14.215/iactivity/mobile/msg.php?act=1"; String tixingfanhuizhi=null; DefaultHttpClient client=new Defau...
分类:其他好文   时间:2015-03-07 23:55:50    阅读次数:173
execl函数 参数问题
函数定义:int execl(const char *path, const char *arg, ...);该函数用户进程操作,linux下包含于头文件#include 函数说明:path表示执行操作的文件路径,后面的不定参数列表为执行该文件时传递过去的参数,最后一个参数需要是NULL来结束。一个...
分类:其他好文   时间:2015-03-07 22:43:21    阅读次数:193
Java安全模型(沙箱or策略)和transient变量
在研究enum类的源码时,跟踪到Class类的如下代码:T[] getEnumConstantsShared() { if (enumConstants == null) { if (!isEnum()) return null; try {...
分类:编程语言   时间:2015-03-07 22:40:27    阅读次数:229
单链表:头插法和尾插法
头插法:linklist *CreateList_Front() { linklist *head, *p; char ch; head = NULL; printf("依次输入字符数据(‘#’表示输入结束):\n"); ch = getcha...
分类:其他好文   时间:2015-03-07 22:39:06    阅读次数:1686
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!