08 2016 档案
摘要://Definition for singly-linked list. #include #include #include struct ListNode { int val; struct ListNode *next; }; void addNode(struct ListNode **head, struct ListNode **p, int val) { ...
阅读全文
摘要:参考:http://blog.csdn.net/mobius_strip/article/details/12731459
阅读全文
摘要:#include #include #include class Item { public: Item(std::string str):name(str){} ~Item(){std::coutdump(); delete pi; std::auto_ptr ap1(Item::CreateItem("auto ptr")); ap1.get(...
阅读全文
摘要:#include #include #include #include #define NUM_CNT 10000000 #define FILE_NAME "num.txt" void genNumber() { int i = 0; int *arr = (int*)malloc(sizeof(int) * NUM_CNT); for(;i < NUM_C...
阅读全文
摘要:参考链接:https://pypi.python.org/pypi/PyMySQL#downloads
阅读全文
摘要:参考文章:http://blog.csdn.net/chen_jp/article/details/8922582 一 字符替换 origin=原字符串 str=替换后的字符串 替换命令: str=${origin//目标字符/替换后的字符} 例如: str=${origin//:/_} 代码示例:
阅读全文
摘要:一,数字循环 输出: 1 2 3 4 5 6 7 8 9 10
阅读全文
摘要:http://ip.qq.com/cgi-bin/searchip?searchip1=180.168.144.211 http://ip.taobao.com/service/getIpInfo.php?ip=180.168.144.211 http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=180.168.1...
阅读全文