- 博客(10)
- 收藏
- 关注
原创 Leetcode 391. Perfect Rectangle
想切题, 开个博客督促下自己。但最近wrong answer的好心烦, 代码贴出来, 谁有空可以帮我挑挑bug。题目:Given N axis-aligned rectangles where N > 0, determine if they all together form an exact cover of a rectangular region.Each rect
2016-09-05 01:25:36 743
原创 C++ Primer 笔记 三
arrays函数内部定义的array 初始值不定int a1[]={1 ,2,3} okauto a2(a1); a2 is an int *points to the first element in a1decltype(a1)a3 = {5,6,7}decltype(a1) return array of 3 intspointers are itera
2014-11-16 17:15:32 352
原创 C++ Primer 笔记 二
using std::cin;using std::cout;string s1= "hello"+"world"+s;error no string object
2014-11-16 17:13:11 335
原创 C++ Primer 笔记 一
typedef double wage;using wage=double;不是直接替换typedef char *pstring;const pstring cstr;const pointer to charconst char *cstr;pointer to a const charbasetype 改变了 从右向左看auto z=z1+z2; 自
2014-11-16 17:11:21 350
原创 字符串数组名与字符串指针的区别
char *str1 = "hello";char str1[] = "hello";sizeof(str1) = 8
2014-11-04 12:53:58 472
转载 网页中同格式(pdf,jpeg)文件下载
#! encoding=utf-8 import urllib2 import re import os def Download(url,output): print "downloading..."+url response = urllib2.urlopen(url) resourceFile = open(output,"wb
2014-11-01 17:02:01 728
转载 计算机书单(刘未鹏)
列一下我所认为的,你面试微软前必须要读的十本书:Code: The Hidden Language of Computer Hardware and Software (《编码的奥秘》) Computer System: A Programmer’s Approach (《深入理解计算机系统》) / Windows via C/C++ (《Windows核心编程》 / 《程序员的自我修养》
2014-11-01 15:48:25 1563
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人