原创 Inline Assembly(for GNU assembler)-the difference of AT&T & intel

點擊打開鏈接Intel and AT&T Syntax. Intel and AT&T syntax Assembly language are very different from eachother in appearance,

原创 c++多態性原理及應用 & c++以及cuda 計時技術小結

關於c++多態性的應用,之前曾經看到過侯俊傑的《深入淺出MFC》,結合上面提到過一些關於多態性的用法與今天看到的一些代碼,做一個簡單的總結: 1.      既然子類和父類(抽象類)實現了同樣的方法,而且各個子類之間實現的方法都有所不同,

原创 不要自稱是程序員,我十多年的 IT 職場總結 http://blog.jobbole.com/94148/

如果我可以給每個工程教育增加一門課,它不會涉及編譯器、門電路或是時間複雜度,而是一門介紹行業現實的入門課,因爲沒人教過這些,所以我們遭受了很多不必要的痛苦和折磨。希望本文可以成爲年輕工程師職業生涯的自述文檔( RAEDME.txt)。

原创 The Kernel Boot Process

The Kernel Boot Process The previous post explained how computers boot up right up to the point where the boot load

原创 Operating System Initialization

Hardware Initialization Typically, when a CPU starts up, it does some internal consistency checks and transfers cont

原创 python學習筆記(二)

今天需要用python讀一個文件,一開始用的readline()函數,道聽途說以爲readline()返回的是一個列表(list),自己實驗之後才知道是字符串(string)。雖然結果還不錯,總算弄了出來,不過還是要吐槽python的文件

原创 ubuntu 學習資料整理

1.安裝fcitx輸入法 install fcitx 如果不喜歡系統自帶的輸入法,可以將iBus,SCIM幹掉,卸載SCIM,IBus: sudo apt-get remove ibus // 卸載ibus輸入法 sudo apt-g

原创 eof()-檢查文件讀取是否達到文件末尾

 std::ios::eof bool eof() const; Check whether eofbit is set Returns true if the eofbit error state flag is set for

原创 An introduction to Linux Virtual Address Space Layout

(This is an introduction for the virtual address space layout I found in a web and there are also the other serious o

原创 Comparison of several number rounding methods

Source code: /* floor example */ #include <stdio.h> /* printf */ #include <math.h> /* floor */ #define ROU

原创 Extended Asm - Assembler Instructions with C Expression Operands

From:點擊打開鏈接 Extended Asm, coming from the Basic Asm, allows you embed assembler with C code. By definition, extended as

原创 windows 環境下 cpp 文件命令行編譯的配置 & 帶參數的main函數的編譯和運行

轉載自:點擊打開鏈接 [Primer C++]命令行運行VC編譯器   解決三個問題: 1.如何在DOS下運行VC編輯器? 2.main函數中的參數意義 3.main函數返回值的意義 最後是我自己添加的測試程序:   Cu

原创 sql server 2008 / 2008 r2 安裝檢測 不斷要求重啓計算機但是重啓之後仍然沒有效果

因爲學習的原因需要安裝sql server,但是每次安裝都被提醒需要重啓計算機,一開始以爲是sql server版本和操作系統不兼容的原因,於是試過sql server 2008之後又嘗試了sql server 2012但是還是同樣的問題

原创 ubuntu 的默認編輯器 gedit

介紹 gedit 文本編輯器是ubuntu系統內初始的默認編輯器。它既適於基本的文本編輯,也適用於高級文本編輯。gedit在絕大多數ubuntu的發行版中都已經預裝。 屏幕截圖 小提示 打開或者關閉文件自動保存功能能,依次點擊:編

原创 cin.getline用法說明 - from C++ reference

 std::istream::getline istream& getline (char* s, streamsize n ); istream& getline (char* s, streamsize n, char deli