全部文章
1. str*系列手写代码a. 一定要注意末尾'\0'的处理,切记切记b. 一定要对输入做有效性判断,多用断言就是了int Strlen(const char* str) { assert(str != NULL); const char* tmp = str; while (*t...
字符串 日期数学 其他:isnull convert row_numberselect len('dshgjkdhsad') 返回指定字符串表达式的字符数,其中不包含尾随空格。itrim(' anc skkmkls ') 返回删除了前导空格之后的字符表达式...
poj2774:http://poj.org/problem?id=2774题意:题解: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn=220010; 6 char str[maxn]; ...
使用c#批量插入数据时,通过for循环,每次执行一条SQL语句进行数据插入,会使插入操作效率非常低下。提高效率的方法: 1.SqlBulkCopy类。 2.表值参数。在SqlServer存储过程中还可以 3.将For循环Insert部分放入一个Transaction中。具体论证与实现,改日追加...
__author__ = 'Administrator'# encoding: utf-8import sysimport datetimeimport mapnikm = mapnik.Map(256,256,"+proj=latlong +datum=WGS84")#m.background =...
说明:MBR:MasterBootRecord(主引导记录)DBR:DOSBootRecord(引导扇区)FAT:FileAllocationTable(文件分配表)硬件:本文SD卡为Kingston4GB,FAT32格式,簇大小4KB,每扇区512字节。第一章硬盘结构与SD卡结构1.1硬盘介绍1....
linux进程地址空间详解(转载)在前面的《对一个程序在内存中的分析》中很好的描述了程序在内存中的布局,这里对这个结果做些总结和实验验证。下面以Linux为例(实验结果显示windows上的结果也一样)。我们还是利用前面看到过的这个图,如下图:32位X86机器的内存布局图,内存主要分为栈、堆、BSS...
Stupid Tower DefenseProblem DescriptionFSF is addicted to a stupid tower defense game. The goal of tower defense games is to try to stop enemies from ...
#encoding: utf-8__author__ = 'Administrator'#import pymongofrom pymongo import MongoClient,GEO2Dimport sqlite3import sysimport psycopg2import ppygisim...
ArbitrageTime Limit:1000MSMemory Limit:65536KTotal Submissions:15640Accepted:6563DescriptionArbitrage is the use of discrepancies in currency exchange...