引言 以前读《C++ Primer》的时候一直有一种感觉:该书虽然是C++入门书籍,初学者读之却觉晦涩,越往后读越是如此。等到稍加理解后再读该书,顿感醍醐灌顶,茅塞顿开。究其原因,在于原作者Stanley Lippman总是会有意无意地从编译器的角度来介绍语言的细节:对新手而言,哪里会去关注这样底....
分类:
编程语言 时间:
2015-03-15 15:04:40
阅读次数:
210
LPC1768有三路IIC,其中IIC0支持高速模式和plus模式,另外两路是普通IIC,使用IIC的过程如下 首先依然是打开IIC时钟,同时打开GPIO时钟然后配置引脚为IIC功能另外,因为iic0支持plus结构,所以gpio控制的时候还有这个寄存器需要设置接下来设置IIC的高低电平占空比最后使...
分类:
其他好文 时间:
2015-03-15 02:06:56
阅读次数:
328
《C Primer Plus》确实是一本伟大的书,但尽信书不如无书,作者Stephen Prata可能也希望他的读者能找到些许他在不经意中出现的小错误吧!
在该书第五版17章“高级数据表示”中,程序清单17.2给出如下代码:
#include
#include
#include
#define TSIZE 45
#define LEN sizeof(struct film)...
分类:
其他好文 时间:
2015-03-14 20:04:44
阅读次数:
215
Functions are central in Go. We'll learn about functions with a few different examplespackage mainimport ( "fmt")func plus(a int, b int) int { r...
分类:
其他好文 时间:
2015-03-14 18:29:44
阅读次数:
99
C++必看书籍: C++编程思想 STL源码剖析 C++primer简历上的所有项目产生的问题都需要能够讲明白查找:哈希,二分排序:快速,冒泡,选择,堆,插入数据结构:map vector TOP K问题
分类:
其他好文 时间:
2015-03-14 18:21:35
阅读次数:
117
http://www.crifan.com/order_make__makefile_in_the_plus__minus_-_and_at_the_meaning_of_numbers/在看makefile,其中有些依赖规则中的命令行前面,会有一些减号“-”或者at符号“@”,比如:distcle...
分类:
其他好文 时间:
2015-03-14 16:48:09
阅读次数:
157
分辨率和像素1.iPhone5 4" 分辨率320x568,像素640x1136,@2x2.iPhone6 4.7" 分辨率375x667,像素750x1334,@2x3.iPhone6 Plus 5.5" 分辨率414x736,像素1242x2208,@3x,(注意,在这个分...
分类:
其他好文 时间:
2015-03-14 15:08:32
阅读次数:
169
/* int *plusOne(int *digits, int len, int *newLen) 感觉很坑,用c做的时候一直run error而且newLen这个参数有用?*/class Solution {public: vector plusOne(vector &digi...
分类:
其他好文 时间:
2015-03-14 13:51:23
阅读次数:
154
题目:
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.题目意思是说给定一个数这个数以数组的形式表示,就...
分类:
其他好文 时间:
2015-03-14 12:27:07
阅读次数:
128
l 基础知识:c++的基础知识:面向对象的特性、构造函数、析构函数、动态绑定等,还有常见的设计模式、UML图l C++知识点:sizeofl C++知识点:复制构造函数,l C++推荐书目Effective c++ 适合在面试之前突击c++,该书提到的问题也是面试官喜欢问的问题。C++ primer...
分类:
编程语言 时间:
2015-03-13 01:35:21
阅读次数:
145