即位于System.Collections命名空间下的集合,如Hashtable,ArrayList,Stack,Queue等.其均提供了线程同步的一个实现集合线程同步的问题public class Demo8{ ArrayList list = new ArrayList(1000000);...
分类:
编程语言 时间:
2015-07-09 11:15:17
阅读次数:
154
1.js文件(注意红色字体):
// JavaScript Document
jQuery.extend({
createUploadIframe: function(id, uri)
{
//create frame
var frameId = 'jUploadFrame' + id;
if(windo...
分类:
Web程序 时间:
2015-07-09 09:41:09
阅读次数:
133
Stack简介
stack是堆栈容器,是一种“先进后出”的容器。
stack是简单地装饰deque容器而成为另外的一种容器。
#include
stack对象的默认构造
stack采用模板类实现, stack对象的默认构造形式: stack stkT;
stack stkInt; //一个存放int的stack容器。
stack stkFloat; //一个存放float...
分类:
其他好文 时间:
2015-07-08 16:41:23
阅读次数:
148
#import "ViewController.h"#import #import #import "CustomView.h"#define width self.view.frame.size.width//#define height self.view.frame.size.height@i...
分类:
其他好文 时间:
2015-07-08 16:08:56
阅读次数:
119
Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top()...
分类:
其他好文 时间:
2015-07-08 14:26:08
阅读次数:
123
1 class Stack { 2 public: 3 // Push element x onto stack. 4 void push(int x) { 5 int len = nums.size(); 6 nums.push(x); 7 ...
分类:
其他好文 时间:
2015-07-08 12:33:47
阅读次数:
121
/**精通iOS6&iOS7适配iOS7 导航栏的frame (0, 20, 320, 44) view的frame (0, 0, 320, 480)iOS6 导航栏的frame (0, 20, 320, 44) view的frame (0, 0, 320, 416)原点从导航栏下方开始计算iO.....
分类:
其他好文 时间:
2015-07-08 10:47:38
阅读次数:
93
1、/**iOS7 view的frame: (0,0,320,480)iOS6 view的frame: (0,0,320,411)从状态栏下方开始计算坐标UITabBar高度是49*/2、//第一种方式 CZOneViewController*one = [[CZOneViewControllera...
分类:
其他好文 时间:
2015-07-08 10:46:55
阅读次数:
112
完成一个简单的时间片轮转多道程序内核代码先上代码:
myPCB.h/*
* linux/mykernel/mypcb.h
*
* describe PCB
*
* by Yuanhang Luo
*
*/
#define MAX_TASK_NUM 4
#define KERNEL_STACK_SIZE 1024*8struct Thread{
unsigned lon...
分类:
其他好文 时间:
2015-07-08 09:37:17
阅读次数:
114
主要思想:申请两个辅助栈,一个用于进in,一个用于出out,倒腾一之后,在出之前变为FIFO即是队列 1 class Queue { 2 stack in,out; 3 public: 4 // Push element x to the back of queue. 5 v...
分类:
其他好文 时间:
2015-07-07 22:35:44
阅读次数:
115