码迷,mamicode.com
首页 >  
搜索关键字:const char p    ( 57984个结果
memmove和memcpy
1.memmove函数原型:void *memmove(void *dest, const void *source, size_t count)返回值说明:返回指向dest的void *指针参数说明:dest,source分别为目标串和源串的首地址。count为要移动的字符的个数函数说明:memm...
分类:其他好文   时间:2014-05-10 06:18:35    阅读次数:226
sqlserver char nchar varchar nvarchar 的区别
数据库SQLserver的数据库存储类型(nchar、char 、nvarchar、varchar)的说明及比较1.char类型: 对英文(ASCII)字符占用1个字节,对一个汉字占用2个字节,CHAR存储定长数据很方便,CHAR字段上的索引效率极高,比如定义char(10),那么不论你存储的数据....
分类:数据库   时间:2014-05-10 02:21:01    阅读次数:397
UTF8-GBK WideCharToMultiByte MultiByteToWideChar
//MFC版本CString UTF8ToGBK(const CString& strUTF8){ //确定转换为Unicode需要多少缓冲区(返回值也包含了最后一个NULL字符) int len = MultiByteToWideChar(CP_UTF8, 0, strUTF8, -1, NULL...
分类:其他好文   时间:2014-05-09 23:05:27    阅读次数:461
.NET(C#):获取进程的内存私有工作集
将读取的数据写到log.txt文件中,先在工程下新建一个log.txt文件public class Program { public const string LOGGER_FILE = "log.txt"; public static void Logger(st...
分类:Web程序   时间:2014-05-09 23:03:52    阅读次数:843
HDU 4280 Island Transport 网络流裸题
非递归版好像被卡掉了,其他2个板子都能过。 #include #include #include #include #include using namespace std; #define ll int const int MAXN = 100100;//点数的最大值 const int MAXM = 400010;//边数的最大值 const int INF = 0x3f3f3f3f; st...
分类:其他好文   时间:2014-05-09 22:55:23    阅读次数:476
HDU 4717 The Moving Points(三分)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4717 思路:第一次写三分法,原理和二分法其实是一样的,计算过程两边for,时间复杂度为O(n^2log(n)) 代码: #include #include #include const double eps = 1e-6; const int N = 305; #define max(a...
分类:其他好文   时间:2014-05-09 21:11:49    阅读次数:359
从Cell类型转变成数据型
我们有一个如下的cell数据 cdata = {'1'  '11' '111' '1111' '11111'}; 现在要把他转变成double型的数组,很自然会想到的方法是cell2mat,可悲的是会遇到一个问题: matlab要求每一行的数据长度要相同才行。 解决这个问题: 1、先把cell转变成char数组,在把...
分类:其他好文   时间:2014-05-09 20:53:59    阅读次数:425
LoadRunner中字符串替换
Action(){ char dest[500]=""; char src[500]="%25E9%25AB%2598%25E4%25B8%25AD"; char oldstr[100]="%"; char newstr[100]="**"; char * position; int strin.....
分类:其他好文   时间:2014-05-09 20:43:15    阅读次数:412
Rabin Karp 算法实战
关键字Rabin karp 算法,C++,ubuntu 14.04, linux, big integer, gmp为了计算冗余度, 我写出了如下算法void HandleAMission(const char *srcFileName, FILE *output, int blockSize, i...
分类:其他好文   时间:2014-05-09 20:12:25    阅读次数:270
案例------触发器
insert 触发器示例create trigger tri_inserton studentfor insertasdeclare @student_id char(10)select @student_id=s.student_id fromstudent s inner join insert...
分类:其他好文   时间:2014-05-09 19:43:53    阅读次数:296
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!