码迷,mamicode.com
首页 >  
搜索关键字:implement queue    ( 10759个结果
问题解决——在STL的queue中使用自定义类
c:\program files\microsoft visual studio 10.0\vc\include\xmemory(48): error C2558: class“CDataRecv”: 没有可用的复制构造函数或复制构造函数声明为“explicit” 1> c:\program files\microsoft visual studio 10.0\vc\include\xmemory(197): 参见对正在编译的函数 模板 实例化“void std::_Construct<C...
分类:其他好文   时间:2014-08-26 11:47:26    阅读次数:230
Queue<T>队列
=====================================Document.csusingSystem; usingSystem.Collections.Generic; usingSystem.Linq; usingSystem.Text; usingSystem.Threading.Tasks; namespaceConsoleApplication2 { publicclassDocument//文本类 { //标题 publicstringTitle{get;privates..
分类:其他好文   时间:2014-08-26 02:57:05    阅读次数:207
skynet源码学习 - 从全局队列中弹出/压入一个消息队列过程
学习云风的skynet源码,简单记录下。 void skynet_globalmq_push(struct message_queue * queue) { struct global_queue *q= Q; uint32_t tail = GP(__sync_fetch_and_add(&q->tail,1)); // only one thread can set the sl...
分类:Web程序   时间:2014-08-25 21:11:04    阅读次数:499
Regular Expression Matching (LeetCode)
Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The...
分类:其他好文   时间:2014-08-25 16:20:54    阅读次数:161
[LeetCode] Implement strStr()
Implement strStr().Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.class Solution {public: ...
分类:其他好文   时间:2014-08-25 13:11:34    阅读次数:153
HDU-4973-A simple simulation problem.(二分+树状数组)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:13:03    阅读次数:321
HDU-4937-A simple simulation problem.(线段树)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:12:13    阅读次数:273
Sdram控制器
/* desctription: this module implement the sdr_sdram timing. the author:lufy yin(wuqingjianke) */`timescale 1ns/1psmodule sdram_io #(parameter DataWid...
分类:其他好文   时间:2014-08-24 12:52:42    阅读次数:208
[LeetCode]Power
周五的晚上,女朋友看爸爸去哪儿,电脑都是我的,狂刷LeetCode,做了十来题,最有印象的还是Power。题目如下:Implement pow(x,n).就是实现x的n次方。这是一题很传统的题目了,但是之前没认真思考过。第一个想法:比如计算pow(x, 100), 计算x,x^2,x^4,x^8,x...
分类:其他好文   时间:2014-08-23 01:05:09    阅读次数:235
[svn] 数据库操作残留,无法进行操作的解决方法
WINDOWS环境下的解决方法: 1: 下载sqlite3数据库工具,放置于SVN的同级目录 2: CMD路径转移到Sqlite3目录 3: 残留操作选择:sqlite3 .svn/wc.db "select * from work_queue" 4: 残留操作删除:sqlite3 .svn...
分类:数据库   时间:2014-08-22 23:50:49    阅读次数:461
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!