public class SyncMetadataJob:SPJobDefinition {
private const string JobName = @"Metadata Sync Job"; private int counter = 0;
...
分类:
其他好文 时间:
2014-05-08 22:30:30
阅读次数:
319
今天在编译程序时遇到“0x00e304f7 处有未经处理的异常: 0xC00000FD: Stack
overflow”的错误,也就是栈溢出了,google了一下,原来是我申请的一个变量太大了,const int maxnum = 10000;
改小一些就好了。局部变量的定义是在栈中申请空间的,栈溢...
分类:
其他好文 时间:
2014-05-08 19:53:07
阅读次数:
268
编程相关注册中断int request_irq( unsigned int irq,
irq_handler_t handler, unsigned long flags, const char *name, void
*dev) typede...
分类:
系统相关 时间:
2014-05-07 17:58:00
阅读次数:
415
#include #ifdef __cplusplusextern "C"
{#endif#include #include //#include #ifdef _MSC_VERint strcasecmp(const char
*s1, const char *s2){ while ((*s...
分类:
其他好文 时间:
2014-05-05 11:09:37
阅读次数:
382
http://acm.hdu.edu.cn/showproblem.php?pid=1598
1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6
const int inf=1<<30; 7...
分类:
其他好文 时间:
2014-05-05 10:53:38
阅读次数:
344
http://acm.hdu.edu.cn/showproblem.php?pid=1599floyd找最小环。 1 #include 2 #include 3
#include 4 #define maxn 200 5 using namespace std; 6 const int inf...
分类:
其他好文 时间:
2014-05-05 10:52:15
阅读次数:
315
QVariant相当于一个包含大多数Qt数据类型的联合体将数据存储为一个Private结构体类型的成员变量d:1 QVariant::QVariant(Type
type)2 { create(type, 0); }1 void QVariant::create(int type, const vo...
分类:
其他好文 时间:
2014-05-04 19:30:20
阅读次数:
593
函数的编码风格1.注释2,空行3,缩进4,参数长度,代码长度,语句长度要合适。5,少用全局变量6,指针仅作输入参数时,可用const
设置其为只读属性,避免其在函数中被修改。7,函数默认的输入输出参数为int
类型,无输入参数或输出参数时要注意用void8,入口参数进行断言检验来自为知笔记(Wiz)
分类:
其他好文 时间:
2014-05-04 11:10:26
阅读次数:
300
题目来源:CF 427D Match & Catch
题意:给出2个字符串 求最短的连续的公共字符串 并且该字符串在原串中只出现一次
思路:把2个字符串合并起来求height 后缀数组height的应用
#include
#include
#include
using namespace std;
const int maxn = 100010;
char s[maxn];
int s...
分类:
其他好文 时间:
2014-05-04 09:32:45
阅读次数:
315
在派生类中序列化一个基类
假如有一个基类如下:
class student_info
{
public:
student_info() {}
virtual ~student_info() {}
student_info(const std::string& sn, const std::string& snm, const std::string& sg)
: name_(sn),...
分类:
其他好文 时间:
2014-05-03 21:41:12
阅读次数:
356