现在位置: 首页 > orphanage发表的所有文章
  • 08月
  • 13日
综合 ⁄ 共 3915字 评论关闭
  CFileFind类的使用总结 2007-7-7 1、CFileFind类的声明文件保存在afx.h头文件中。 2、该类的实现的功能:执行本地文件的查找(查找某个具体的文件,查找某类文件x*.x*,查找所有文件*.*) 3、CFileFind类是CGopherFileFind和CFtpFileFind类的基类。 4、CFileFind类的构造函数::CFileFind()和关闭函数::Close()我会成对使用。 5、CFileFind类的成员函数我根据其操作特性划分为3类:查找操作类、获得文件属性类、判断文件属性类。(下面我先进行函数罗列并没有完整的描述函数的参数) 查找操作类       ::FindFile();       ::FindNex......
阅读全文
  • 08月
  • 05日
编程语言 ⁄ 共 2281字 评论关闭
source:http://blog.csdn.net/five3/article/details/7059574 python语言简练、易学,基本上没有什么编程经验的人都可以很快上手,并且做一个有简单功能的脚本,帮助我在工作中完成任务。那下面就来看看python入门知识有哪些东西,了解这些东西我们就可以像写shell脚本一样来通过python来完成我们的简易工作需求。【当然比shell更易学、用】 [python] view plaincopy 1、基本的输入/输出:   someth = input('Please input something:\n')    ##获取标准输入   somethelse = raw_input('please input some other thi......
阅读全文
  • 02月
  • 13日
综合 ⁄ 共 3090字 评论关闭
The 11th Zhejiang Provincial Collegiate Programming Contest is coming! As a problem setter, Edward is going to arrange the order of the problems. As we know, the arrangement will have a great effect on the result of the contest. For example, it will take more time to finish the first problem if the easiest problem hides in the middle of the problem list. There are N problems in the contest. Certainly, it’s not interesting if the problems are sorted in the order of increasing difficulty. ......
阅读全文
  • 01月
  • 03日
综合 ⁄ 共 23687字 评论关闭
Copyright © 2003 by 詹荣开 E-mail:zhanrk@sohu.com Linux-2.4.0 Version 1.0.0,2003-2-14 摘要:本文主要从内核实现的角度分析了Linux 2.4.0内核的Softirq机制。本文是为那些想要了解Linux I/O子系统的读者和Linux驱动程序开发人员而写的。 关键词:Linux、Softirq、软中断、Bottom half、设备驱动程序 申明:这份文档是按照自由软件开放源代码的精神发布的,任何人可以免费获得、使用和重新发布,但是你没有限制别人重新发布你发布内容的权利。发布本文的目的是希望它能对读者有用,但没有任何担保,甚至没有适合特定......
阅读全文
  • 12月
  • 27日
算法 ⁄ 共 1382字 评论关闭
题意:给出p,a问p是不是以a为底的伪素数,如果p不是素数判断,是否a^p%p==a #include<iostream> #include<algorithm> #include<math.h> #include<stdio.h> #include<string.h> #include<time.h> #include<stdlib.h> typedef __int64 LL; LL a,b,sum; const int S=20;//随机算法判定次数,S越大,判错概率越小 //***************Miller_Rabin 算法进行素数测试*************** int cmp(void const *a,void const *b) { if(*(LL *)a......
阅读全文
  • 10月
  • 24日
综合 ⁄ 共 2136字 评论关闭
临床试验中通常会遇到这样的情况:一个病床号对应了不同的患者或者一个患者对应了不同的病床号。这种情况可以归类为重复数据问题。下面有几种方法来学习重复数据的检查与相关处理。 1.利用data步来实现 proc sort data=clean.patients out=tmp;    by Patno; run; data dup;    set tmp;    by Patno;    if first.Patno and last.Patno then delete; run; 2.利用proc freq实现 proc freq data=clean.patients noprint;    tables Patno / out=dup_no(keep=Patno Count                              where=(Count gt 1)); run; pr......
阅读全文
  • 06月
  • 26日
综合 ⁄ 共 399字 评论关闭
将私有的jar包或者maven2找不到匹配的jar包,导入到本地库中   mvn install:install-file -Dfile=d:/Downloads/apache-activemq-5.5.0/lib/activemq-core-5.5.0.jar -DgroupId=org.apache.activemq -DartifactId=activemq-core -Dversion=5.5.0 -Dpackaging=jar     解析: mvn install:install-file  -Dfile=外部包的路径 /                             -DgroupId=外部包的groupId /                             -DartifactId=外部包的artifactId /                             -Dversion=外部包的版本号 /                   ......
阅读全文
  • 05月
  • 27日
综合 ⁄ 共 1720字 评论关闭
在上一篇博文中,我写了一篇关于开源的表格控件ReoGrid的文章,点这里 我大致研究了一下它的执行脚本那块的功能,发现它使用了一个叫ReoScript的脚本引擎,并且也是一个开源项目,点这里 通过上图,可以清晰的看到这个引擎的使用过程。 下面为集成到.net开发环境中的方法 Run your script Prepare script, and run it by using ScriptRunningMachine:Result:There are some basic features provided by ReoScript core, such as Array.Result: Add your objects and functions into script 3 ways to add objects and functio......
阅读全文
  • 05月
  • 03日
综合 ⁄ 共 2126字 评论关闭
HTTP Basic Authentication原来非常简单,参考文档:http://zh.wikipedia.org/wiki/HTTP%E5%9F%BA%E6%9C%AC%E8%AE%A4%E8%AF%81 将用户名和密码用:分隔,然后用base64编码,最后用HTTP GET方法请求页面 下面一小段代码用newLISP调用了Jenkins的Remote API: dean@dean-beijing-home:~$ ./http.lsp hello <freeStyleBuild><action><cause><shortDescription>Started by upstream project "detail_summary_pipeline" build number 3</shortDescription><upstreamBuild>3</upstreamBuild>......
阅读全文
  • 04月
  • 26日
综合 ⁄ 共 1371字 评论关闭
#include<iostream> using namespace std; const int oo=1000000; int n,m;//n为点的个数 m为边的条数 int begin,end;//begin为起始点 end为结束点 struct bian {        int a,b;        int w; }*E; int *D; int Ford() {     int i,j;     for (i=1;i<=m;i++)     {         for (j=1;j<=n;j++)         {//松弛             if(D[E[i].b]>D[E[i].a]+E[i].w)             {                 D[E[i].b]=D[E[i].a]+E[i].w;             }         }     }     return 0; } int main(){     int i,j;     int a,b,w......
阅读全文
  • 04月
  • 13日
综合 ⁄ 共 452字 评论关闭
        又是好累的一天,被个iis搞死了,又是一次午觉泡汤了。还做了一件没有任何技术含量却又非常耗时间的事情,把自己搞得好累。看来我不得不反思下自己在公司处理问题的方式。        很多时候我都是把事情揽在自己身上做,有的时候是想多学点东西,有的时候是不放心别人做,有的时候是不好意思,还有的时候是想表现下。但很多时候我都没有去考虑一下自己是否有这个精力、时间或者必要去做这些事情,有些事情明明可以让别人做,自己却揽过来做,那么就会有一些问题,一个是精力不够,搞得自己很累,一个是自己该做的事情来不及......
阅读全文
  • 01月
  • 20日
综合 ⁄ 共 793字 评论关闭
题目连接:http://poj.org/problem?id=1719 很明显的最大匹配题目。而且题目是SPJ的,可以直接用匈牙利算法计算从行到列的最大匹配数   我的代码: #include<stdio.h> #include<string.h> bool map[1005][1005]; bool used[1005]; int link[1005]; int n,m; bool dfs(int u) { int i; for(i=1;i<=m;i++) { if(map[u][i]&&!used[i]) { used[i]=true; if(link[i]==-1||dfs(link[i])) { link[i]=u; return true; } } } return false; } int main......
阅读全文