在空间看到别人的疑问引起了我的兴趣,刚好是我感兴趣的话题,就写一下.为了别人的疑问,也发表在qq空间里.因为下班比较晚,10点才到家,发表的也晚.其实是个简单的问题. 直接用实例和内存图说明: #include <iostream> using std::cout; using std::cin; struct stu { char sex; int length; ]; }; void main() { stu stu0; stu0.sex = 'f'; stu0.length = ; s
继续继续... 转眼都开学啦... Building Blocks 2 building blocks里讲了一些关于Log structure storage的东西,这也是用于在硬盘上持久化KvStore要用的结构.我们边做project边看吧 Project 2 这次要Create a persistent key/value store that can be accessed from the command line,意思就是要写硬盘啦.我们给project2起个名字吧:KVS2.0 B