原创 smba軟件

smba軟件是linux系統上實現SMB協議的一個免費軟件。SMB是一種在局域網上共享文件,打印機的一種通信協議。 SMB協議來源 歷史溯源 在早期網絡世界當中,檔案數據在不同主機之間的傳輸大多是使用 FTP 這個好用的服務器軟件來

原创 2.3-系列習題總結

(待補全) 2.3-2 #include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; void merge(int A[], int p

原创 生成11位號碼

//說明:手機號爲11位,第一位爲固定的1,第二位在3,5,8三個數中取,剩餘爲隨機數 #include <iostream> #include<stdlib.h> #include<fstream> using namespace s

原创 2.2-2習題總結(選擇排序)

(待補全) #include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; void select_sort(int A[], int le

原创 使用bochs的組件bximage 報錯:could not write disk image

我在ubntu的/usr下新建了目錄test,然後到test下使用bximage新建一個軟盤映像, Do you want to create a floppy disk image or a hard disk image? Pleas

原创 詳細講解海明碼的文章

詳細講解海明碼的文章 http://blog.csdn.net/TMS_LI/article/details/6258788  

原创 學習《orange's 一個操作系統的實現》準備

1.下載一個虛擬機 vbox 2.下載一個ubuntu的iso文件(700多M) 3.在vbox上安裝ubuntu操作系統 4。ubuntu操作系統中必須要安裝以下幾個軟件: gcc gnu make nasm samba 其中,gcc:

原创 函數形參

非引用形參和引用形參     指針形參           指針引用形參       總結: 非引用形參 (1)普通的非引用類型的參數通過複製對應的實參實現初始化。當用實參副本初始化形參時,函數並沒有訪問調用所傳遞的實參本身,因此不會修

原创 計算機網絡中的小端大端

以下摘自stanford的intro to network 1-8 notes. least significant bit:最低位 most significant bit:最大位 different processors have d

原创 對空指針賦值的問題 指針的指針 指針的指針和指針數組

對空指針賦值的問題(假如指針*p,這裏所說的賦值不是p= XXX,而是*p=XXX) 首先說一下什麼是指針: 假設 有語句 int a=10;那麼編譯器就在內存中開闢1個整型單元存放變量a,我們假設這個整型單元在內存中的地址是 0x100

原创 算法導論第三版4.1最大和子數組思考

對於maximum_subarray的分治算法: #include <stdio.h> #include <stdlib.h> #include <iostream> #include <limits.h> using namespac

原创 同餘 congruence of squares

轉自:http://blog.csdn.net/leonharetd/article/details/12918659 數學上,兩個整數除以同一個整數,若得相同餘數,則二整數同餘(英文:Modular arithmetic;德文:Kon

原创 類中的靜態成員變量 非靜態成員變量的初始化問題

#include <iostream> using namespace std; struct a {  int m; }; struct b : public a {   int n =8; }; int n =8這行報錯,因爲類的非靜

原创 2.1-4習題總結

習題是這個樣子的: Consider the problem of adding two n-bit binary integers, stored in two n-element arrays A and B.The sum of t

原创 算法導論第三版4.1習題解答

4.1-2 use brute-force to solve the maximum_subarray problem. #include <stdio.h> #include <stdlib.h> #include <iostream>