原创 Notepad++自定義語法高亮、自動補全功能簡單介紹

Notepad++自定義語法高亮、自動補全功能簡單介紹最近因爲在用一種非正規的語言寫簡單的腳本,用windows自帶的記事本進行編輯實在是太痛苦,就想找個能像VC、VB等開發軟件中能使語法高亮、自動補全函數的工具,找來找去,發現N

原创 unix shell 比較

UNIX Shell 編程 一些條件判斷 總結 -b file            若文件存在且是一個塊特殊文件,則爲真-c file            若文件存在且是一個字符特殊文件,則爲真-d file          

原创 explicit

class Test1 { public: Test1(int n){num=n;} private: int num; }; class Test2 { public: explicit Test2(int n){num = n;

原创 ptrdiff_t

Uses of the ptrdiff_t Data Type C and C++ define a special type for pointer arithmetic, namely ptrdiff_t, which is a ty

原创 回調函數

5. 回調函數 請點評 如果參數是一個函數指針,調用者可以傳遞一個函數的地址給實現者,讓實現者去調用它,這稱爲回調函數(Callback Function)。例如qsort(3)和bsearch(3)。 表 24.7. 回調

原创 boost1.34-1 vc++6.0 編譯

D:\C++\boost_1_34_1\tools\jam\srcbuild.bat msvc(後面是環境vc++6.0)生成的bjam.exe拷貝到boost_1_34_1目錄下 修改boost_1_34_1\tools\build\v

原创 set_new_handler

#include <iostream> #include <new.h> using namespace std; int __cdecl newhandler(unsigned int ) { cout<<"the new_handl

原创 奮鬥

1。每天11:00點前睡覺,每天6:30點前起牀 2。每天提醒自己,不要忘記夢想 3。多鍛鍊身體,身體垮了什麼都沒有了,男人女人要對自己好一點; 4。努力學習賺錢的本領,錢是一個人活着的根本,是做人的尊嚴; 5。常回家看看老媽老爸,常給姐

原创 函數指針 與 指針函數

函數指針,落腳點是指針   例如:int (*f)(int x); f是指針 用法:  int fun(int x);  f = fun;   指針函數: 例如:int *f(x,y); 返回值是指針 用法: main() {     c