原创 顯卡的接口

 接口類型是指顯卡與主板連接所採用的接口種類。顯卡的接口決定着顯卡與系統之間數據傳輸的最大帶寬,也就是瞬間所能傳輸的最大數據量。不同的接口決定着主板是否能夠使用此顯卡,只有在主板上有相應接口的情況下,顯卡才能使用,並且不同的接口能爲顯卡帶

原创 nonpublic over containment

That being the case, what are the extra things we can do if we use inheritance that we can't do if weuse containment? I

原创 Linker related

To build the executable, the linker must perform two main tasks: Symbol resolution. Object files define and reference

原创 100000th prime algorithm by baihacker ....

Attention:是第第第100,000個,不是100,000以內!!!! 貌似這個數很大啊~這是金山的筆試題目,怎麼算?說出大致思想也成,

原创 虛繼承 構造順序

如下的菱形結構,四個字母分別表示一個類名       A   B    C       D 說明:B和C均繼承A, D繼承B和C 下面是我調試的5種情況的結果,請大家幫忙分析一下: 1. 若所有繼承均爲普通繼承,則構造函數的調用順序如下:

原创 調用棧相關。--飛雪所爲

C/C++ code class Test { public: int i; int j; }; void crashme(Te

原创 【基礎】關於const寫保護 收藏 --by dongpy

const int x = 0; int main() { const int y = 0; *(int*)&x = 1;

原创 call stack

When you make a function call, the computer saves on the stack (on the top,

原创 vitual base

Microsoft Visual C++虛擬多繼承 對象模型初步分析                                                                                     

原创 /n/r

'/r'  回車,回到當前行的行首,而不會換到下一行;'/n'  換行,換到當前位置的下一行,而不會回到行首; 回車”(Carriage Return)和“換行”(Line Feed)這兩個概念的來歷和區別。 在計算機還沒有出現之前,有一

原创 calling convention

函數調用約定與函數名稱修飾規則(一) 作者:星軌(oRbIt)     E_Mail:[email protected]     轉載請註明原作者,否則請勿轉載       使用C/C++語言開發軟件的程序員經常碰到這樣的問題:有時候是程序

原创 彙編相關 -by codesnail

    簡單的函數調用,通過簡單的函數調用反彙編可以清楚瞭解如下 1.棧到底是什麼,如何操縱棧的? 2.參數和臨時變量是以什麼形式在哪存放? 3.如何傳遞返回值? 舉例: #include <stdio.h> int add(int a,

原创 二分法

作者:baihacker 來源:http://hi.baidu.com/feixue http://hi.csdn.net/baihacker 二分原理: 設f是定義在[a, b]上的bool函數,且滿足性質若f(i) = true則f(

原创 override overload hide and their differences

For the next few points, it's important to differentiate between three common terms:To overload a function f() means to

原创 12個高矮不同的人,排成兩排,

作者:baihacker 來源:http://hi.baidu.com/feixue http://hi.csdn.net/baihacker 問題描述: 12個高矮不同的人,排成兩排,每排必須是從矮到高排列,而且第二排比對應的第一排的人