本题大意:给出一个包含不同数字的集合,求出所有可能的排列。例如:给出集合为[1,2,3],结果应为: ...
分类:
其他好文 时间:
2016-06-14 13:44:01
阅读次数:
159
OutOfMemoryError在开发过程中是司空见惯的,遇到这个错误,新手程序员都知道从两个方面入手来解决:一是排查程序是否有BUG导致内存泄漏;二是调整JVM启动参数增大内存。OutOfMemoryError有好几种情况,每次遇到这个错误时,观察OutOfMemoryError后面的提示信息,就 ...
分类:
编程语言 时间:
2016-06-14 13:43:21
阅读次数:
198
PHP中的数据传输神器cURL先谢慕课网,谢谢老师。cURL的概念: (client URL Library Function ) 使用URL语法传输数据的命令行工具.客户端向服务器请求资源的工具。cURL的使用场景: 请求网页资源(编写网页爬虫); WebService数据接口资源(动态获取接口数 ...
分类:
Web程序 时间:
2016-06-14 13:43:31
阅读次数:
218
无废话ExtJs 入门教程二[Hello World] 无废话ExtJs 入门教程二[Hello World] extjs技术交流,欢迎加群(201926085) 我们在学校里学习任何一门语言都是从"Hello World"开始,这里我们也不例外。 1.代码如下: 1 <!DOCTYPE html ...
分类:
Web程序 时间:
2016-06-14 13:42:26
阅读次数:
216
linux网络编程之socket(十):shutdown 与 close 函数的区别 socket中关闭套接字的函数close和shutdown区别 #include <unistd.h> int close(int fd); close 关闭了自身数据传输的两个方向。关闭本进程的socket id ...
分类:
其他好文 时间:
2016-06-14 13:42:53
阅读次数:
247
题目: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e ...
分类:
其他好文 时间:
2016-06-14 13:43:50
阅读次数:
146
链表 动态的链接空间 头有尾空中不断 先说说链表的构建吧 课本上介绍的是尾插法 linklist build(){ linklist head,tail,q; int i; head=tail=NULL; for(i=1;i<=8;i+=2) { q=(linklist)malloc(sizeof( ...
分类:
其他好文 时间:
2016-06-14 13:42:24
阅读次数:
160
https://wiki.apache.org/httpd/DistrosDefaultLayout This guide lists the default installation layouts for Apache HTTPD on various operating systems and ...
分类:
Web程序 时间:
2016-06-14 13:43:04
阅读次数:
180
一.包含头文件#import <MediaPlayer/MediaPlayer.h> 二.重点:给MPMoviePlayerController的view设置frame,并且将view添加到某一个view上 ...
分类:
移动开发 时间:
2016-06-14 13:41:18
阅读次数:
213
http://blog.sina.com.cn/s/blog_4f925fc30102e27j.html jqGrid中实现radiobutton的两种做法 第一种:colModel: [ { name: 'MY_ID', index: 'MY_ID', align: "center", sorta ...
分类:
其他好文 时间:
2016-06-14 13:43:02
阅读次数:
229
题目大意:将k个不同的数字相加,使得所求的和为n,要求这些数字只能从1到9中间取,并且不能重复。求出所有满足的情况,并且按从小到的顺序排列后存入列表。例如:k=3,n=7,结果应为:[[1,2,4]]。再比如:k = 3, n = 9,结果为:[[1,2,6], [1,3,5], [2,3,4]]。 ...
分类:
其他好文 时间:
2016-06-14 13:42:55
阅读次数:
169
SELECT TOP 2 * FROM Persons SELECT *FROM PersonsWHERE ROWNUM <= 5 SELECT * FROM Persons WHERE City LIKE '%lond%' SELECT * FROM Persons WHERE LastName ...
分类:
数据库 时间:
2016-06-14 13:41:12
阅读次数:
159
本文是Linux Shell系列教程的第(十)篇,更多Linux Shell教程请看:Linux Shell系列教程 基本任何语言都有自己的循环语句,Shell当然也不例外,今天就为大家介绍下Shell for循环的用法。 Shell for循环语法 Shell for循环的语法如下所示 列表是一组 ...
分类:
系统相关 时间:
2016-06-14 13:41:52
阅读次数:
181
#include<stdio.h>#include<stdlib.h>#define N 100 typedef struct process{ int num; int time; int start; int end; int begin; int freetime; int arrivetim ...
分类:
其他好文 时间:
2016-06-14 13:41:51
阅读次数:
724
Golang 数据库操作 Golang 数据库 MySQL Golang支持DB操作位于database包下,支持基本CRUD操作、事务和Prepared Statement,本文以MySQL为例。 MySQL驱动安装 使用数据库之前,必须安装相关MySQL数据驱动[1],如果未安装驱动或者没有引入 ...
分类:
数据库 时间:
2016-06-14 13:41:08
阅读次数:
1586
简单的导出到Excel中: 代码如下: using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Web; namespa ...
分类:
其他好文 时间:
2016-06-14 13:39:24
阅读次数:
173
在声明property属性后,有2种实现选择 @synthesize 编译器期间,让编译器自动生成getter/setter方法。 当有自定义的存或取方法时,自定义会屏蔽自动生成该方法 @dynamic 告诉编译器,不自动生成getter/setter方法,避免编译期间产生警告 然后由自己实现存取方 ...
分类:
其他好文 时间:
2016-06-14 13:41:00
阅读次数:
135