原创 C++中的函數指針和函數對象

#include <stdio.h> #include <string.h> #include <stdlib.h> #include <iostream> #include <string> #include <algori

原创 編譯器 以及 純虛函數

突然發現人生 完全沒意義了 #include <stdio.h> #include <iostream> class Base { public: Base(){printf("BaseContor\n");foo()

原创 win gcc,g++ 用法總結

slef: 直接寫個 .bat文件 (windows下) content: goto skip_comments rem echo %1 //print second argument 添加動態鏈接庫文件

原创 linux-i386(ubuntu14.0)下編譯安裝gsoap_2.8.17過程記錄

http://www.cnblogs.com/coveted/p/3492342.html 1.下載gsoap_2.8.17.zip 並 解壓 : $unzip gsoap_2.8.17.zip 2.進入解壓後的目錄gsoap-2

原创 the classical examination test

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> //copy the ”n-m“ size string from

原创 dos 遞歸刪除文件

some recource come from network, thanks all this people! 1. ::delete the special files in current directory recursi

原创 tinyXml learning

some resource come from network, thanks all this people! #include <string> #include <iostream> #include <tinyxml.h>

原创 進程鎖 process mutex ??

#include <stdio.h> #include <sys/types.h> #include <sys/ipc.h> #include <string.h> #include <stdlib.h> #include <pt

原创 win7 x64 apche

下載 安裝包, eg. apache_2.2.8-win32-x86-no_ssl.msi 如果默認80端口被佔用,爲Apache重新設置端口步驟: 1. 找到Apache安裝目錄下conf目錄下的httpd.conf文件(即

原创 static trap

#include <stdio.h> #include <iostream> #include <unistd.h> using std::cout; using std::endl; void print(char*

原创 嵌入式設備抓包

1.通過hub(集線器)來抓包。【可能交換機不可以】 路由器和集線器的區別 路由器接受到某一端口發來的數據包的時候,它是定向傳遞給目標的; HUB則採用廣播機制,只要收到數據,既向所有端口發送廣播很明顯,hub就很容易抓包了,當然

原创 OSI七層模型 以及 TCP/IP模型

some recource come from network, thanks all this people! OSI 7 層模型: 在傳輸層的數據叫段,網絡層叫包,數據鏈路層叫幀,物理層叫比特流,這樣的叫法叫PDU(協議數據單

原创 override operator

19.override operator << struct topic_descript { btstring topic_url; //R

原创 WinpCap抓包 公開的免費的抓包驅動加開發包

WinpCap是一個公開的免費的抓包驅動加開發包,利用它,可以大大縮短我們的開發週期。 首先,先枚舉系統中的所有網卡: /* 獲取設備列表 */ if (pcap_findalldevs(&alldevs, errbuf)

原创 forward declaration 前置聲明

when class A and class relationship is very close, like that // chair.h #include "room.h" class chair { room* a