码迷,mamicode.com
首页 >  
搜索关键字:io    ( 172858个结果
《JavaScript+DOM编程艺术》的摘要(五)-----添加insertAfter
在JS原生里面,没有提供insertAfter这个方法,不过我们可以利用appendChild、insertBefore、parentNode这些方法创建一个insertAfter方法,代码如下:function insertAfter(newElement,targetElement){ ...
分类:编程语言   时间:2014-07-19 19:09:30    阅读次数:207
Objective C 快速入门学习二
Objective-C类、对象、方法1.编写一个复数类:#import @interface Complex: NSObject //类声明,Complex继承NSObject{ int iReal;//成员变量声明,在括号内 int iImag;}//成员函数声明,在括号外-(...
分类:其他好文   时间:2014-07-19 19:07:42    阅读次数:213
【leetcode刷题笔记】Pascal's Triangle II
Given an indexk, return thekthrow of the Pascal's triangle.For example, givenk= 3,Return[1,3,3,1].Note:Could you optimize your algorithm to use onlyO(...
分类:其他好文   时间:2014-07-19 19:05:27    阅读次数:174
lnmp部署cacti+nagios
关于lnmp架构整合cacti+nagios中,nginx的配置文件是最难搞的,个人感觉nginx.conf的配置文件##里面用重写server { listen 80; server_name laimai365.org www.laimai365.org; ...
分类:移动开发   时间:2014-07-19 00:21:40    阅读次数:347
WA七次,疯了》》》》》OTZ
Counting Game There are n people standing in a line, playing a famous game called ``counting". When the game begins, the leftmost person says ``1" lo....
分类:其他好文   时间:2014-07-19 00:20:58    阅读次数:245
poj3253哈夫曼树
Fence RepairTime Limit: 2000 MS Memory Limit: 65536 KB64-bit integer IO format: %I64d , %I64u Java class name: Main[Submit] [Status] [Discuss]Descript...
分类:其他好文   时间:2014-07-19 00:20:15    阅读次数:183
HDU2842之斐波那契亚数列变形,动态规划
1.原题展示:一根棒子上有n个环(n 2 #include 3 #include 4 #define size 3 5 #define mod 200907 6 struct Mat 7 { 8 long long num[size][size]; 9 };10 Mat init,r;//定义全局变...
分类:其他好文   时间:2014-07-19 00:19:38    阅读次数:202
大家一起乐
本年度最搞笑的GIF动画大全,笑破肚皮2013-4-21 16:21阅读(3)转载自囧言囧语搞笑网赞(608623)评论转载(227.68万)分享(193.23万)复制地址编辑上一篇|下一篇:家庭待客菜谱,先...独乐乐不如众乐乐、如果你也笑了话记得转载分享给身边的朋友哦!
分类:其他好文   时间:2014-07-19 00:18:55    阅读次数:233
组合模式
面向对象中,有一个原则是: 组合优于继承的原则今天学习了组合模式,做一个小总结。组合模式的应用场景:把整体和局部的关系用树形结构表示,从而客户端能够把一个一个的局部对象和由局部对象组合的整体对象采用同样的方法来对待;组合模式的应用实例:_units,$unit); } /*...
分类:其他好文   时间:2014-07-19 00:16:32    阅读次数:215
网站Session 处理方式
分布式session有以下几种方案:1. 基于nfs(net filesystem)的session共享将共享服务器目录mount各服务器的本地session目录,session读写受共享服务器io限制,不能满足高并发。2. 基于关系数据库的session共享这种方案普遍使用。使用关系数据库存储se...
分类:Web程序   时间:2014-07-19 00:16:10    阅读次数:315
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!