码迷,mamicode.com
首页 > 其他好文
lr--atoi、itoa
Action(){ int pageSum; char randpage[4]; web_reg_save_param("page", "LB=href=\"?c=browse&keyword=&cg=&marker=B&page=", ...
分类:其他好文   时间:2015-03-02 16:23:58    阅读次数:281
intent 几种用法
Intent 应该算是Android中特有的东西。你可以在Intent中指定程序 要执行的动作(比如:view,edit,dial),以及程序执行到该动作时所需要的资料。都指定好后,只要调用startActivity(),Android系统会自动寻找最符合你指定要求的应用 程序,并执行该程序。下面列...
分类:其他好文   时间:2015-03-02 16:23:05    阅读次数:164
PAT:1080. Graduate Admission (30) 部分错误(录取以学校为导向而不是考生志愿为导向导致的错误)
#include#include#includeusing namespace std;int want[106]; //各学校招生人数struct Student{ int GE,GI,sum,rank,ID; int prefer[6]; bool R; /...
分类:其他好文   时间:2015-03-02 16:22:37    阅读次数:195
LeetCode: Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n...
分类:其他好文   时间:2015-03-02 16:24:23    阅读次数:129
SAX解析
SAX(simple API for XML)是一种XML解析的替代方法。相比于DOM,SAX是一种速度更快,更有效的方法。它逐行扫描文档,一边扫描一边解析。而且相比于DOM,SAX可以在解析文档的任意时刻停止解析,但任何事物都有其相反的一面,对于SAX来说就是操作复杂。目录1解析初步2SAX的工作...
分类:其他好文   时间:2015-03-02 16:21:55    阅读次数:272
第十章,软件测试
错是软件的属性,存在错误是必然的,然而我们可以通过一系列的测试来减少这些错误,以便使我们的程序变得更加完美。为把我软件开发各个环节的正确性,需要进行各种确认和验证工作,软件确认的目的是保证软件产品能够符合其描述要求,他包括需求规格说明的确认和程序的确认。软件测试是指软件产品生存周期内所有的检查、评审...
分类:其他好文   时间:2015-03-02 16:23:02    阅读次数:150
23种设计模式(3):抽象工厂模式
定义:为创建一组相关或相互依赖的对象提供一个接口,并且无需指定他们的详细类。类型:创建类模式类图:抽象工厂模式与工厂方法模式的差别 抽象工厂模式是工厂方法模式的升级版本号,他用来创建一组相关或者相互依赖的对象。他与工厂方法模式的差别就在于,工厂方法模式针对的是一个产品等级结构;而抽象工厂模式则是针对...
分类:其他好文   时间:2015-03-02 16:21:40    阅读次数:129
[Perl] 利用Geopt::Long模块接收命令行参数
当perl程序需要处理用户输入的参数时,有两种方式:第一种方法是:使用@ARGV数组第二种方法是:调用Getopt::Long模块,该方法方便而强大。本文主要介绍该方法。Getopt::Long 在Perl中的调用实例:#!/usr/bin/perluse Getopt::Long;my ($ver...
分类:其他好文   时间:2015-03-02 16:20:19    阅读次数:172
lua(注册c库)
#include #include extern "C"{#include "lua-5.2.2/src/lua.h"#include "lua-5.2.2/src/lauxlib.h"#include "lua-5.2.2/src/lualib.h"}//定义库函数static int l_dir...
分类:其他好文   时间:2015-03-02 16:20:36    阅读次数:137
A1071. Speech Patterns (25)
People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzi...
分类:其他好文   时间:2015-03-02 16:21:23    阅读次数:153
[Flex] 组件Tree系列 —— 运用LabelFunction hasChildren getChildren设置Tree包含节点个数
mxml: 1 2 3 4 5 8 9 10 41 42 43 44 45 46 47 48 49 ...
分类:其他好文   时间:2015-03-02 16:18:11    阅读次数:148
[Flex] 组件Tree系列 —— 实现右键拓展功能
主程序mxml: ; if (!rightClickRegisted){ TreeRightClickManager.regist(); rightClickRegisted = true; ...
分类:其他好文   时间:2015-03-02 16:18:50    阅读次数:175
第六节
调优方法原理:禁用atime的修改来节省cpu和内存资源。命令:mount noatime disk1、配置文件1. /etc/passwd文档结构:由":" 分隔成7个字段"username":"x":"uid":"gid":"remark":"homedirectory":"shell envi...
分类:其他好文   时间:2015-03-02 16:17:29    阅读次数:220
昂贵的聘礼(dijkstra)
昂贵的聘礼Time Limit:1000MSMemory Limit:10000KTotal Submissions:38549Accepted:11158Description年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答...
分类:其他好文   时间:2015-03-02 16:17:57    阅读次数:158
防止页面冒泡
var mousewheel = document.all ? "mousewheel" : "DOMMouseScroll"; $(".w_content_inner").bind(mousewheel, function (e) { e.stopPropa...
分类:其他好文   时间:2015-03-02 16:19:26    阅读次数:99
腾讯云服务器挂载数据盘
fdisk -lDisk /dev/vda: 8589 MB, 8589934592 bytes255 heads, 63 sectors/track, 1044 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesSector size...
分类:其他好文   时间:2015-03-02 16:18:26    阅读次数:219
StringTokenizer类的使用
StringTokenizer是一个用来分隔String的应用类,相当于VB的split函数。1.构造函数public StringTokenizer(String str)public StringTokenizer(String str, String delim)public StringTo...
分类:其他好文   时间:2015-03-02 16:18:25    阅读次数:109
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!