码迷,mamicode.com
首页 > 2015年05月05日 > 全部分享
C 语言 *** glibc detected *** free(): invalid next size (fast): 0x0000000000be1010 ***
.....LZ 今天在写一个 Socket 程序的时候使用 malloc(3) 在堆上动态分配了一个结构体的空间,在使用完之后用 free(3) 函数释放空间的时候报invalid next size 这样的一个错误,经过了两个小时的调试,最后发现是因为粗心越界导致的。LZ 把这个错误缩减为一个最简...
分类:编程语言   时间:2015-05-05 21:16:07    阅读次数:135
数据集
The CIFAR-10 dataset总共有60000 32x32的彩色图片分为10类。6000张图片每类,总共50000张训练图片,10000张测试图片。总体数据分为5批训练集和1批测试集,这5批训练集的数据不是均分的。可能有的批次多,有的批次少。但每一类的测试集和训练集都是5000,1000....
分类:其他好文   时间:2015-05-05 21:17:15    阅读次数:290
BZOJ-2618 [CQOI2006]凸多边形
半平面交模版题。。#include #include #include #include #include #include #define rep(i, l, r) for(int i=l; i0; return a.ang0;}int n, m, cnt;int main(){ n=read()...
分类:其他好文   时间:2015-05-05 21:14:47    阅读次数:174
Windows常见宏的使用
WIN32_LEAN_AND_MEAN1. 参考资料:https://msdn.microsoft.com/en-us/library/windows/desktop/aa383745(v=vs.85).aspx2. 使用说明: You can reduce the size of the Wind...
分类:Windows程序   时间:2015-05-05 21:16:56    阅读次数:687
Aspose.Cells.dll的用法
1 public void OutExcel() 2 { 3 #region 4 WorkbookDesigner designer = new WorkbookDesigner(); 5 Work...
分类:Web程序   时间:2015-05-05 21:16:13    阅读次数:297
LR11中自定义函数web_custom_request请求
Action() { char * ip,temp; int state; double time_elapsed, duration, waste; merc_timer_handle_t timer_check; /* l...
分类:Web程序   时间:2015-05-05 21:14:44    阅读次数:167
leetcode_191题——Number of 1 Bits(外运算)
Number of 1 BitsTotal Accepted:25965Total Submissions:70075My SubmissionsQuestionSolutionWrite a function that takes an unsigned integer and returns t...
分类:其他好文   时间:2015-05-05 21:14:37    阅读次数:124
嵌入式 vlc从接收到数据流到播放视频的过程分析(经典)
个人整理:Vlc流播放流程vlc源码目录树:目录名称说明bindingsJava, CIL和Python绑定doc帮助文档(不是更新的)extras另叙。includeVLC头文件libsSRTP库和装载库lxdialog制作menuconfig的文件m4Automake和autoconf的宏文件m...
分类:其他好文   时间:2015-05-05 21:14:41    阅读次数:652
背单词 Remember the world LA 3942
#include#include#includeusing namespace std;const int MAXN = 4000 * 100 + 10;const int sigma = 26;const int MAXNn = 300010;const int mod = 20071027;ch...
分类:其他好文   时间:2015-05-05 21:15:47    阅读次数:124
leetcode_162题——Find Peak Element(数组,水题)
Find Peak ElementTotal Accepted:24838Total Submissions:79757My SubmissionsQuestionSolutionA peak element is an element that is greater than its neighb...
分类:编程语言   时间:2015-05-05 21:13:38    阅读次数:144
jquery总结
1. (function($){})(jQuery)这个的函数其实: function($){}是一个匿名函数,这个函数的有一个形参 $ ,定义函数之后后面的 (jQuery) 其实就是对改函数的调用,传递了 jQuery 参数,给前面定义的匿名函数:等价于:定义函数:foovar foo = fu...
分类:Web程序   时间:2015-05-05 21:13:34    阅读次数:154
I-MooFest(POJ 1990)
MooFestTime Limit:1000MSMemory Limit:30000KTotal Submissions:5697Accepted:2481DescriptionEvery year, Farmer John's N (1 #include #include #include #in...
分类:其他好文   时间:2015-05-05 21:14:15    阅读次数:121
River Crossing---河南省第六届大学生程序设计竞赛
题目描述 Afandi is herding N sheep across the expanses of grassland when he finds himself blocked by a river. A single raft is available for transportatio...
分类:其他好文   时间:2015-05-05 21:16:02    阅读次数:133
LR参数和变量
一、LR中参数的使用LR中参数默认使用“{}”来表示,如果想要修改,可以再General Options/Parameterization设置参数的边界字符经常用到的函数:?lr_save_string("字符串",参数名),把字符串保存为参数?void lr_save_datetime(const...
分类:其他好文   时间:2015-05-05 21:13:01    阅读次数:118
BZOJ-1038 [ZJOI2008]瞭望塔
先求半平面交,然后建塔的地方肯定是在半平面交的交点上或者是在地面线段的交点上。#include #include #include #include #include #include #include #define rep(i, l, r) for(int i=l; i0; return a.a...
分类:其他好文   时间:2015-05-05 21:13:22    阅读次数:132
oc-sel 数据类型
SEL 其实是对方法的一种包装,将方法包装成SEL类型的数据,去找对应的方法地址,然后调用对应的方法。通过方法名的字符串 调用方法: 每一个方法中都默认还有一个sel 为_cmd
分类:其他好文   时间:2015-05-05 21:12:25    阅读次数:123
linux学习(一)
在 Linux 当中,预设 root 的提示字符为 # ,而一般身份使用者的提示字符为 $;本次登录,支持语系改为英文[root@linux ~]# LANG=en [root@linux ~]# LANGUAGE=en [root@linux ~]# LC_ALL=en [root@linux ~...
分类:系统相关   时间:2015-05-05 21:14:21    阅读次数:202
2438条   上一页 1 ... 26 27 28 29 30 31 32 ... 144 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!