现在位置: 首页 > fraternal发表的所有文章
  • 09月
  • 15日
综合 ⁄ 共 1201字 评论关闭
C#.NET验证码智能识别学习笔记---02-C#.Net中Using关键字的用法 技术qq交流群:JavaDream:251572072  教程下载,在线交流:it.yunsit.cn -------------------------------------------------- 教程应该会用到,这个知识点,摘出来了。。 --------------------------------------------- 1.using的用途和使用技巧.   1、  引用命名空间   2、  为命名空间或类型创建别名   3、  使用using语句 1、  引用命名空间,这样可以在程序中引用命名空间的类型而不必指定详细的命名空间. a)         比如在程序中常用的using System.Tex......
阅读全文
  • 02月
  • 08日
综合 ⁄ 共 4258字 评论关闭
插入排序:时间复杂度最坏O(n^2),最佳O(n),平均O(n^2) ,空间复杂度O(1),稳定 void insertion_sort(int a[],int n) { for(int i=1;i<n;++i) { int temp=a[i]; int j=i-1; while(j>=0 && a[j]>temp) { a[j+1]=a[j]; --j; } a[j+1]=temp; } } 选择排序:时间复杂度最坏O(n^2),最佳O(n^2),平均O(n^2),空间复杂度O(1),不稳定 void selection_sort(int a[],int n) { for(int i=0;i<n-1;++i) { in......
阅读全文
  • 01月
  • 08日
综合 ⁄ 共 2310字 评论关闭
Description Background  Mr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him can move knights from one position to another so fast. Can you beat him? The Problem  Your task is to write a program to calculate the minimum number of moves needed for a knight to reach one point from another, so that you have the chance to be faster than Somurolov.  For people not familiar with chess, the possible knight moves are shown in Figure 1.  Input The input begins with the ......
阅读全文
  • 01月
  • 03日
综合 ⁄ 共 5383字 评论关闭
1、概述: INI file是配置文件,保存的是数据,主要是系统或者软件的配置信息。 Iniparser则是对INI file的解析或者操作(get,set,delete 等等)。 下面分别就INI file的文件格式和Iniparser提供的APIs进行说明。 2、INI file INI文件则是一些系统或者软件的配置文件。          主要是由”properties”和”section”组成的文本文件。 Properties(Keys) INI文件的最基本组成单元就是key或者叫property. 每个key都有一个名称(name)和对应的值(value),名称和值之间用等号(=)关联,名称出现在等号的左边。  name=value          ......
阅读全文
  • 09月
  • 29日
综合 ⁄ 共 1304字 评论关闭
一、冒泡排序 基本思想:每次循环将最大的值放在最后,冒泡排序最优的时间复杂度是O(n), 最差的时间复杂度O(n^2) ,平均时间复杂度O(n^2),空间复杂度为O(1),是稳定排序。 伪代码: for i=A.length-1 downto 1 //这里只需到A[1],因为A[1]确定了A[0]自然就确定了 for j=0 to i-1 if A[j]>A[j+1] exchange A[i] and A[j+1] java代码实现: public static void bubbleSort(int A[]) { for(int i = A.length-1; i > 0; i--){ for(int j = 0; j < i ;j++){ if(A[j] > A[j+1]){ int tem......
阅读全文
  • 05月
  • 27日
综合 ⁄ 共 5655字 评论关闭
Delphi--TControl与Windows消息的封装   TControl是从TPersistent类的子类TComponent类继承而来的。TPersistent抽象基类具有使用流stream来存取类的属性的能力。 TComponent类则是所有VCL组件的父类。 这就是所有的VCL组件包括您的自定义组件可以使用dfm文件存取属性的原因(当然要是TPersistent的子类,我想您很少需要直接从TObject类来派生您的自定义组件吧)。 TControl类的重要性并不亚于它的父类们。在BCB的继承关系中,TControl类的是所有VCL可视化组件的父类。实际上就是控件的意思吧。所谓可视化是指您可以在运行......
阅读全文
  • 04月
  • 23日
综合 ⁄ 共 1816字 评论关闭
跟poj1860类似 判断是否存在正环,bellman-ford每个点做一次正环判断,刚开始以为每种货币都要能升值,错了,后来又因为case后面少打了个空格 晕 code #include <set> #include <map> #include <ctime> #include <queue> #include <cmath> #include <stack> #include <limits> #include <vector> #include <bitset> #include <string> #include <cstdio> #include <cstring> #include <fstream> #include <string.h> #include <iostream......
阅读全文
  • 04月
  • 19日
综合 ⁄ 共 1301字 评论关闭
------- android培训、java培训、期待与您交流! ---------- 1.函数调用指令集 x86 cpu 函数调用指令集 call ret 主要作用是保存现场和恢复现场,比如 cpu 寄存器压栈和弹栈; jvm 函数调用指令集 invokevirtual invokeinterface invokespecial invokestatic return .. 等等,由于 jvm 没有物理寄存器,而是用操作数栈和pc寄存器来替代,jvm 保存现场和恢复现场的解决方案是压一个栈帧 入 java栈,函数返回的时候弹出从 java栈中弹出一个栈帧;因为 java 的代码是以类中的函数为单位进行代码块的管理,所以调用函数的时候,jvm 不......
阅读全文
  • 03月
  • 22日
综合 ⁄ 共 2414字 评论关闭
http://www.cnblogs.com/zhuqil/archive/2012/07/23/2604572.html 我们都知道HTTPS能够加密信息,以免敏感信息被第三方获取。所以很多银行网站或电子邮箱等等安全级别较高的服务都会采用HTTPS协议。 HTTPS简介 HTTPS其实是有两部分组成:HTTP + SSL / TLS,也就是在HTTP上又加了一层处理加密信息的模块。服务端和客户端的信息传输都会通过TLS进行加密,所以传输的数据都是加密后的数据。具体是如何进行加密,解密,验证的,且看下图。 1. 客户端发起HTTPS请求 这个没什么好说的,就是用户在浏览器里输入一个https网址,然后连接......
阅读全文
  • 01月
  • 26日
综合 ⁄ 共 1435字 评论关闭
当你创建一个project时,会要求你输入product name & company identifier,这两个property的值should和你在apple developer member center的“Provisioning Portal”的“App IDs"里创建的bundle identifier (NOT App ID)匹配!如果不匹配的话,push notification feature和cloud feature则不成功!! 例如, 当你创建的App ID时,设置的"Bundle Seed ID (App ID Prefix)"为"ABX453B", "Bundle Identifier (App ID Suffix)"为"edu.cityu.MobileCap",那么你的App ID为"ABX453B.edu.cityu.MobileCap"。 那么你创建project时......
阅读全文
  • 12月
  • 18日
综合 ⁄ 共 564字 评论关闭
CString dwIP2csIP(DWORD dwIP) { CString strIP = _T(""); WORD add1,add2,add3,add4; add1=(WORD)(dwIP&255); add2=(WORD)((dwIP>>8)&255); add3=(WORD)((dwIP>>16)&255); add4=(WORD)((dwIP>>24)&255); strIP.Format("%d.%d.%d.%d",add4,add3,add2,add1); return strIP; } DWORD csIP2dwIP(LPCTSTR strIP) { int len=_tcslen(strIP); if(len <6||len> 15) return 0......
阅读全文
  • 12月
  • 15日
综合 ⁄ 共 41171字 评论关闭
  Original: http://www.falloutsoftware.com/tutorials/gl/gl8.htm The OpenGL Light Bible Let there be light... and light there was! (A considerably long and educative process notwithstanding) This is one of the most substantial as well as educational tutorials on OpenGL lighting model on this web-site and perhaps, on the Internet as a whole. Therefore the name: The OpenGL Light Bible. I would recommend printing out this tutorial. Remember to check out this  additional OpenGL literature if y......
阅读全文