原创 Why Prototypes?

The prototype tells the compiler what type of return value, if any, the function has, and it tells the compiler the num

原创 Three exceptions of array name

C/C++ in most contests treats the name of an array as if it were a pointer which point the the first element. There are

原创 Using library functions

If you're using a library function, the function has already been defined and compiled for you. Also you can and should

原创 Fun is where you find it.

Fun is where you find it. Look closely, and you can find it in functions. C++ comes with a large library of useful func

原创 Debugging with GDB Summary of GDB

Summary of GDB The purpose of a debugger such as GDB is to allow you to see what is going on "inside" another program w

原创 6 Mechanism: Limited Direct Execution

The first is performance: how can we implement virtualization without adding excessive overhead to the system? The seco

原创 Dynamic Memory and Class

Letting the program decide about memory during runtime rather than during compile time.

原创 What is an lvalue?

An argument that's an lvalue is a data object that can be referenced by address. Regular variable can be further charac

原创 OOP

Object-oriented programming(OOP) is a particular conceptual approach to designing programs, and C++ has enhanced C with

原创 Function Template

template <typename T> The keywords template and typename are obligatory. The template does not create any functions. In

原创 英文原著圖書館

http://gen.lib.rus.ec/  

原创 operator overloading

Becausle operator overloading is implemented with functions, you can overload the same operator many times, as long as

原创 整型常量、實型常量、字符常量、符號常量、枚舉常量的區別

整型常量默認數據類型是int,當數值超過int時,類型會變成long,超過long會報warning; 符號常量默認數據類型是int,當數值超過int時,類型會變成long,超過long會報warning; 枚舉常量默認數據類型是int,

原创 Tempory Variables, Reference Arguments, and const

A C++ function with a const reference formal argument and a nonmatching actural argument mimics the traditional passing

原创 硬盤和硬盤驅動器的區別

硬盤(hard disk)指的是用來存儲數據的裝置。物理上以金屬光盤呈現,兩面均可以存儲數據,磁道、扇區。 硬盤驅動器(hard disk drive, HDD)指的是個人計算機中控制硬盤尋址以及存取數據的裝置,通過硬盤驅動器,計算機才能