飞狐魔兽代码//修改积分bool
ChatHandler::HandleAddjifen(const char* args){ Player *chr =
getSelectedPlayer(); if (chr == NULL) { SendSysMessage(L...
分类:
其他好文 时间:
2014-06-07 02:12:56
阅读次数:
309
web_submit_data()函数处理无状态或者上下文无关的表单提交。它用来生成表单的GET或POST请求,这些请求与Form自动生成的请求是一样的。发送这些请求时不需要表单上下文。函数语法:Int
web_submit_data ( const char *StepName, , ITEMDA...
分类:
Web程序 时间:
2014-06-04 22:33:48
阅读次数:
407
class Solution {private: static int
compare(const Interval& a, const Interval& b) { return a.start
merge(vector &intervals) { vector...
分类:
其他好文 时间:
2014-06-03 12:32:23
阅读次数:
228
线段树。 1 #include 2 #include 3 #include 4 using
namespace std; 5 6 #define mymax(a, b) (a>b) ? a:b 7 8 const int maxn =
200005; 9 10 int nums[maxn>...
分类:
其他好文 时间:
2014-05-31 15:22:14
阅读次数:
264
详细请参考这篇博文http://blog.csdn.net/dbzhang800/article/details/7540905运行字符编码就是指,当你源代码写下const
char* p = "我";的时候(不管源文件保存为什么编码格式,但标准规定源文件带bom utf8),编到二进制模块内的常量...
分类:
编程语言 时间:
2014-05-31 12:57:00
阅读次数:
367
字符串模板第一发,Tire(前缀树)。 1 const int maxnode = 4005*100;
2 const int sigma_size = 30; 3 4 class tire{ 5 public: 6 int
ch[maxnode][sigma_size]; 7 i...
分类:
其他好文 时间:
2014-05-31 07:38:45
阅读次数:
239
仿照之前的雪花,Hash函数随便搞个。#include #include #include
#include #include #include #include #include #include #include #include const
int INF = 9973;const int k...
分类:
其他好文 时间:
2014-05-31 06:53:35
阅读次数:
263
// 获取文件运行路径void GetAppFilePath(const CString&
strProjectName){ TCHAR szFileName[MAX_PATH]; HMODULE hModule =
GetModuleHandle(strProjectName); ...
分类:
编程语言 时间:
2014-05-30 04:38:22
阅读次数:
367
Queue
简单而实用的数据结构,FIFO,通过循环数组避免队列出现“似乎满了”的现象。package Queueimport "errors"const (
defaultQueueSize=10)var queueSize inttype MyQueue struct{ front...
分类:
其他好文 时间:
2014-05-30 00:48:43
阅读次数:
284
1、QTcpSocket
继承于QAbstractSocket继承于QIODevice2、QTcpSocket提供的几种接收和发送数据方法write( const char *,
qint64 ) : qint64write( const char * ) : qint64write( const ...
分类:
其他好文 时间:
2014-05-29 22:56:22
阅读次数:
268