原创 udp併發服務器程序之客戶端測試----初步
#include <pthread.h>#include <iostream>#include <errno.h>#include <sys/soc
原创 pthread庫學習
1.pthread_create 創建線程發生內存分配不足錯誤,通常是線程數過多。自已機子ubuntu8.04能成功創建線程大小爲382。爲了能創建更
原创 學習python--寫的copyfile例子
import osimport shutilimport stringos.chdir('/home/yijunjun/boost_1_36_0/bi
原创 12個球一個天平,現知道只有一個和其它的重量不同,問怎樣稱才能用三次就找到那個球?
轉自:http://blog.csdn.net/fengzi_shen/archive/2007/11/26/1903247.aspx把12個球編成1
原创 udp併發服務器程序----初步
#include <pthread.h>#include <iostream>#include <errno.h>#include <sys/type
原创 保存一下emacs中安裝color-theme的lisp源代碼
;;; color-theme.el --- install color themes ;; Copyright (C) 1999, 2000 Jonadab the Unsightly One <j
原创 udp併發服務器程序----再次修改
#include <pthread.h>#include <iostream>#include <errno.h>#include <sys/types.h>#include <sys/socket.h>#include <semapho
原创 udp併發服務器程序之客戶端測試----再次修改
#include <pthread.h>#include <iostream>#include <errno.h>#include <sys/socket.h>#include <sys/types.h>#include <time.h>
原创 lz78中字典實現
#include <map>#include <string>class Dictionary {public: std::string get_perfix(long mask); long get_mask(const
原创 libSDL--初步使用
#include <stdlib.h>#include <SDL/SDL.h>#include <SDL/SDL_image.h>#define MOVE_STEP 5#define SCREEN_LENGTH 640#define SC
原创 高效睡覺
轉自:http://sz.bendibao.com/life/20081117/84721.htm 做軟件的人熬夜是很正常的事,但經常熬夜對身體會產生很壞的影響,無意中看到這篇文章,轉載過來,或許對經常
原创 比較兩文件是否完全相同的程序---幫助試驗壓縮程序
#include <iostream>#include <fstream>int main(int argc, char* argv[]){ std::ifstream file_first("test.txt"); std: