首页 > 其他
XMLHttpRequest
1)说明XmlHttp提供了网页加载后与服务器进行通信的方法。XmlHttp最大的用处是可以更新网页的部分内容而不需要刷新整个页面。2)创建IE:httpRequest = new ActiveXObject("Microsoft.XMLHTTP");非IE:httpRequest = new XM...
分类:其他   时间:2014-04-08 12:39:18    收藏:0  评论:0  赞:0  阅读:510
[转]你不淘汰自己,就会被别人淘汰
你不淘汰自己,就会被别人淘汰,来自subying博客
分类:其他   时间:2014-04-08 12:42:19    收藏:0  评论:0  赞:0  阅读:485
Qt 域名转成IP
#include #include #include #include struct hostent *h; QByteArray ba = ui->lineEdit->text().toLatin1(); h = gethostbyname(ba.data()); if(h == NULL) { ...
分类:其他   时间:2014-04-08 12:43:54    收藏:0  评论:0  赞:0  阅读:1241
【LeetCode练习题】Reverse Linked List II
Reverse Linked List IIReverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return...
分类:其他   时间:2014-04-08 12:52:46    收藏:0  评论:0  赞:0  阅读:568
程序过程简单总结
1运算符“&&”和“||”分别是短路和,短路运算符。2if和if/else语句用于条件选择。3switch语句由一个到多个case语句组成。switch语句中的值可以是byte,short,int,或char类型。case语句的值必须是一个4 while循环用于重复执行任务。while循环体中的语句...
分类:其他   时间:2014-04-08 13:04:52    收藏:0  评论:0  赞:0  阅读:388
UVA 12511 Virus [最长公共递增子序列 LCIS 动态规划]
VirusWe have a log file, which is a sequence of recorded events. Naturally, the timestamps are strictly increasing.However, it is infected by a virus,...
分类:其他   时间:2014-04-08 13:09:24    收藏:0  评论:0  赞:0  阅读:564
递归-Hanio塔问题
直接或间接地调用自身的算法称为递归算法。用函数自身给出定义的函数称为递归函数。简单的算法:假设塔座a、b、c排成一个三角形,a-b-c-a构成顺时针循环,在移动圆盘的过程中,若是奇数次移动,则将最小的圆盘移动到顺时针方向的下一个塔座上;若是偶数次移动,则保持最小的圆盘不动,而在其他两个塔座之间,将较...
分类:其他   时间:2014-04-08 13:21:32    收藏:0  评论:0  赞:0  阅读:493
Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:其他   时间:2014-04-08 13:24:36    收藏:0  评论:0  赞:0  阅读:404
实现一个简单的http请求工具类
OC自带的http请求用起来不直观,asihttprequest库又太大了,依赖也多,下面实现一个简单的http请求工具类四个文件源码大致如下,还有优化空间MYHttpRequest.h(类定义,类目定义)#import @class MYHttpResponse;@interface MYHttp...
分类:其他   时间:2014-04-08 13:26:02    收藏:0  评论:0  赞:0  阅读:953
[RGEOS]绘制多边形Polygon
绘制OGIS定义的Polygon 1 public void DrawPolygon(Polygon pol, Brush brush, Pen pen, bool clip) 2 { 3 gc = Graphics.FromHwnd(Handle); 4 if (pol.ExteriorRing ...
分类:其他   时间:2014-04-08 13:29:12    收藏:0  评论:0  赞:0  阅读:690
xampp install
the way of restart: sudo /opt/lampp/lampp restartconfig root: /opt/lampp/etc/httpd.conf /opt/lampp/etc/httpd-xampp.conf in each file we should change ...
分类:其他   时间:2014-04-08 13:32:13    收藏:0  评论:0  赞:0  阅读:424
__cdecl __stdcall __fastcall之函数调用约定讲解
首先讲解一下栈帧的概念:从逻辑上讲,栈帧就是一个函数执行的环境:函数参数、函数的局部变量、函数执行完后返回到哪里等等。实现上有硬件方式和软件方式(有些体系不支持硬件栈)首先应该明白,栈是从高地址向低地址延伸的。每个函数的每次调用,都有它自己独立的一个栈帧,这个栈帧中维持着所需要的各种信息。寄存器eb...
分类:其他   时间:2014-04-08 13:39:36    收藏:0  评论:0  赞:0  阅读:557
ecshop被加入了黑链
朋友一个ecshop网站被攻击了,查看代码如下: *{padding:0; margin:0;} body{background:threedface;font-family:"Verdana", "Tahoma", "宋体",sans-serif; font-size:13px;margin-to...
分类:其他   时间:2014-04-08 13:41:13    收藏:0  评论:0  赞:0  阅读:16202
CoreData教程
一篇关于CoreData framework的较为完整的教程。附带完整学习代码。
分类:其他   时间:2014-04-08 13:42:37    收藏:0  评论:0  赞:0  阅读:998
可变参数简易实现
public class VarargsTest { public static void main(String[] args) { Integer[] ii={1,2,3,4,5}; add(ii); add(); add(1,2,3,4); } public static void add(I...
分类:其他   时间:2014-04-08 13:53:09    收藏:0  评论:0  赞:0  阅读:258
Serv-U搭建FTP服务器
1、打开软件,勾选start automatically2、点击domain,新建domain3、依次输入IP、端口号、域名、域名类型完成后的样子4、右键单击Users,新建用户。依次输入用户名、Home目录、用户密码。如果需要创建匿名账户,则用户名用Anonymous,将不会弹出设置账户密码窗口。...
分类:其他   时间:2014-04-08 13:54:39    收藏:0  评论:0  赞:0  阅读:530
数据结构与算法分析 - 单源点最短路(Dijkstra+floyd+bellman_ford)
暂时先附上Djikstra的代码:优先队列的实现 1: typedef pair P; 2: #define N 101 3: #define INF 100000 4: int edges[N][N]; 5: int dist[N]; 6: int pre[N]; 7: int cases,k,n...
分类:其他   时间:2014-04-08 14:05:09    收藏:0  评论:0  赞:0  阅读:499
泛型简易实现
import java.util.ArrayList;import java.util.HashMap;import java.util.Iterator;import java.util.List;import java.util.Map;import java.util.Set;public c...
分类:其他   时间:2014-04-08 22:26:05    收藏:0  评论:0  赞:0  阅读:478
CentOS6.5下 yum安装LAMP
CentOS下yum安装LAMP1.用yum安装Apache,Mysql,PHP.1.1安装Apacheyum install httpd httpd-devel安装完成后,用/etc/init.d/httpd start启动apache设为开机启动:chkconfig httpd on1.2安装m...
分类:其他   时间:2014-04-08 22:26:41    收藏:0  评论:0  赞:0  阅读:426
FingerGestures 使用入门
什么是FingerGestures?FingerGestures是Unity上,非常热门的一款用于处理用户输入的插件为什么要使用FingerGestures?1:它统一了鼠标点击和用户触摸的输入模型。使得我们可以在UnityEditor里面就可以方便地进行触摸测试(而不必发布到机器上)2:它提供了丰...
分类:其他   时间:2014-04-08 22:26:54    收藏:0  评论:0  赞:0  阅读:540
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!