码迷,mamicode.com
首页 >  
搜索关键字:array    ( 29504个结果
php 快速fork出指定个子进程
转:php 快速fork出指定个子进程 $pids = array(); $child_pid = pcntl_fork(); if ($child_pid == -1) { throw new Exception( __METHOD__ . "|" . __LINE__ . ": fork() e ...
分类:Web程序   时间:2016-04-24 23:06:01    阅读次数:247
socket发送http请求
转自:思齐-socket发送http请求 socket方式: $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); //socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, array("se ...
分类:Web程序   时间:2016-04-24 23:02:45    阅读次数:244
笔记:程序内存管理 .bss .data .rodata .text stack heap
1.未初始化的全局变量(.bss段) bss段用来存放 没有被初始化 和 已经被初始化为0 的全局变量。如下例代码: 编译并查看: 全局变量bss_array的大小为4MB = 1024*1024*sizeof(int) Byte = 4194304 Byte。 通过size 查看可知数据被存在了 ...
分类:其他好文   时间:2016-04-24 20:06:35    阅读次数:543
void (*isr_handle_array[50])(void);求解这个申明怎么理解 啊??
这是函数指针数组。一层一层向里面剥就好啦。 是一个指向 返回值为void 参数也是void的指针数组。先看里面[50]知道是个数组,再向外看是一个函数指针,合起来就是函数指针数组。我写个源码,你就明白啦。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #include ...
分类:其他好文   时间:2016-04-24 15:53:12    阅读次数:205
Kth Largest Element in an Array
利用最小堆解决,代码如下: ...
分类:其他好文   时间:2016-04-24 12:48:13    阅读次数:192
js一些通用方法的封装
//封装StringBuilder function StringBuilder() { this._string_ = new Array(); } StringBuilder.prototype.Append = function (str) { this._string_.push(str); ...
分类:Web程序   时间:2016-04-24 12:25:50    阅读次数:239
[2016-04-23][C++类模板的一些事儿]
[2016-04-23][C++类模板的一些事儿] 定义(关于类模板和模板类) 类模板:在类里面使用了 模板类型,即满足如下结构就是类模板 template class Array{ T* p;} ; 模板类:类模板实例化之后的对象就叫模板类 使用 实例化必须指定类型, 通过 类名后面加上 来指明类... ...
分类:编程语言   时间:2016-04-24 00:41:09    阅读次数:271
Leetcode题目:Best Time to Buy and Sell Stock
题目:Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transact ...
分类:其他好文   时间:2016-04-23 18:20:17    阅读次数:157
[leetcode ]239. Sliding Window Maximum
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num ...
分类:Windows程序   时间:2016-04-23 18:17:43    阅读次数:243
[CareerCup] 17.6 Sort Array 排列数组
17.6 Given an array of integers, write a method to find indices m and n such that if you sorted elements m through n, the entire array would be sorted ...
分类:编程语言   时间:2016-04-23 16:29:08    阅读次数:160
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!