- 博客(10)
- 收藏
- 关注
原创 进程管理(一)
操作系统前言摘录1.进程的基本概念2.进程同步进程的基本概念程序顺序执行时的特征:(1) 顺序性:处理机的操作严格按照程序所规定的顺序执行,即每一操作必须在上一个操作结束之后开始。(2) 封闭性:程序是在封闭的环境下执行的,即程序运行时独占全机资源,资源的状态(除初始状态外)只有本程序才能改变它。程序一旦开始执行,其执行结果不受外界因素影
2012-07-31 15:41:58 2911
原创 Chapter 7 Functions
7.2 -- Argument PassingNote:When the only reason to make a parameter a reference is to avoid copying the argument, the parameter should beconst reference.It should be obvious that a functi
2012-07-25 16:16:12 606
原创 Chapter 2 Variables and Basic Types
2.3 -- VariablesC++ programs typically are composed of many files. In order for multiple files to access the same variable, C++ distinguishes between declarations and definitions.A definition
2012-07-25 15:09:24 636
原创 Chapter 5 Expressions
5.11 -- The new and delete ExpressionsWhen we writedelete p;p becomes undefined. Although p is undefined, on many machines,p still contains the address of the object to which it pointed. H
2012-07-21 07:15:30 508
原创 Chapter 16 Templates and Generic Programming
Generic programming involves writing code in a way that is independent of any particular type.Templates are the foundation of generic programming.Generic programming lets us write classes and function
2012-07-19 09:10:13 837
原创 面试宝典5,6,7--程序设计基本概念;预处理、const与sizeof;指针与引用
http://blog.csdn.net/winglet/article/details/28316051.What will be the output of the following C code?#include int main(){ int arr[]={6,7,8,9,10}; int *ptr=arr; *(ptr++)+=123;
2012-07-13 19:44:33 1189
转载 Map与Hash_Map
大家都知道在C++的STL中map是使用树来做查找算法,而hash_map使用hash表来排列配对,是使用关键字来计算表位置。那使用起来他们的差别主要是什么呢?对于性能差别是什么,适合什么情况下应用呢?于是我对它们进行了一些测试,并记录了测试数据供大家分享。 测试的内容主要是map和hash_map的添加、删除、查找和遍历操作,首先进行了几组测试,分别是10万次、30万次,时间单位均为毫
2012-07-13 10:41:41 819
原创 Chapter 15 Object-Oriented Programming
Object-oriented programming is based on three fundamental concepts:data abstraction, inheritance, and dynamic binding. In C++ we use classes for data abstraction and class derivation to inherit one cl
2012-07-03 10:44:01 873
原创 Chapter 13 Copy Control
13.1 -- The Copy ConstructorThe constructor that takes a single parameter that is a (usuallyconst) reference to an object of the class type itself is called the copy constructor. Like the defaul
2012-07-03 08:50:05 724
原创 Chapter 12 Classes
12.4 -- ConstructorsIf a class defines even one constructor, then the compiler will not generate the default constructor.The synthesized default constructor initializes members using the s
2012-07-02 16:00:01 542
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人