码迷,mamicode.com
首页 >  
搜索关键字:block corruption    ( 15795个结果
C++实现的简单的内存池
用空闲链表的方式组织一连串的分配的空间,且在此程序中仅支持内置类型。只是实现了简单的分配和回收。 #include #include #include using namespace std; int const MAX=100; struct block{ block *next; block *addr; explicit block(int _size):next...
分类:编程语言   时间:2014-08-22 16:30:49    阅读次数:285
连续使用两次fread 错误和fread返回值
今天在写一个代码,要把一帧的buffer读入到文件,因为有NEON和OpenCL两种不同的实现所以需要读取文件两次,代码如下: 1 FILE *file; 2 int i = 0; 3 INTER_BLOCK_SIZE_GPU_RS *block_size; 4 file = fop...
分类:其他好文   时间:2014-08-22 16:15:29    阅读次数:281
display:inline-block在IE6/Ie7和IE8中的区别
在IE6、IE7中不识别display:inline-block属性,但使用inline-block属性在IE下会触发layout,从而使内联元素拥有了display:inline-block属性的表症。从上面的分析也不难理解为什么IE6、IE7下对块元素设置
分类:其他好文   时间:2014-08-22 16:13:18    阅读次数:189
linux(vi)多行注释和取消注释.
//comment1,'ctrl+v' to VISUAL BLOCK mode.2,'j' or 'k' to select/deselect lines.3,'I' to INSERT mode.4,'#' and 'ESC'.//uncommentstep '1','2' are the sa...
分类:系统相关   时间:2014-08-22 15:53:59    阅读次数:325
pthread_exit
pthread_exit:By having main() explicitly callpthread_exit()as the last thing it does, main() will block and be kept alive to support the threads it cr...
分类:其他好文   时间:2014-08-22 12:31:06    阅读次数:149
[Enterprise Library for .NET Framework 2.0]Custom Trace Listener例子演示
1.打开配置文件 2.移除不需要的Block,并添加Log Block 3.添加“Custom Trace Listener” 4.定义Attributes 5.添加定义类库“CustomTraceListenerExtensions” 6.编写代码,如下: using System; using ...
分类:Web程序   时间:2014-08-22 12:24:26    阅读次数:349
C语言写俄罗斯方块源码——————【Badboy】
#include #include #include char x,y,ty,ty1,zhuan,line1=0,line2=0,ss[16],hol[10][29]={0},a[4][2]={0}; int score1=0,speed=1000; void unit(char,char,char);           void dl(int); void block(cha...
分类:数据库   时间:2014-08-22 10:57:46    阅读次数:358
关于NSArray的几种排序:
#利用数组的sortedArrayUsingComparator调用 NSComparator  其中NSComparator其实就是一个返回NSComparisonResult的block。          typedef NSComparisonResult (^NSComparator)(id obj1, id obj2); 其中obj1、obj2其实是NSArray中的元素 ...
分类:其他好文   时间:2014-08-21 21:12:24    阅读次数:202
magento获取当前栏目ID号与栏目名称函数
Magento获取当前栏目ID:$_cat= new Mage_Catalog_Block_Navigation();$curent_cat= $_cat->getCurrentCategory();$curent_cat_id= $curent_cat->getId(); 或者Mage::regi...
分类:其他好文   时间:2014-08-21 18:40:14    阅读次数:172
yii2 ContentDecorator 和 block 挂件
在做网站的过程中,大部分的页面结构都是相似的。如都有相同的头部和底部。各个页面这样仅仅是中间的部分不同。Yii中的布局文件就是用来实现这样的功能。如:布局文件:@app/views/layouts/main.php 后台action:public function action...
分类:其他好文   时间:2014-08-21 17:00:24    阅读次数:207
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!