re: 程序自動生成迷宮 merlinfang 2011-11-24 19:18
當(dāng)然走的通啊,入口出口就左上角和右下角那兩個口子。@鳳兮歸來
re: C++經(jīng)典開源項(xiàng)目 merlinfang 2011-11-22 23:16
zlib openssl這些也算C++的啊。。那還有l(wèi)inux呢
re: 程序自動生成迷宮 merlinfang 2011-11-21 21:18
不是這個意思,指其他方面,如變量的命名,z1,z2,zx等等,一行語句很復(fù)雜等等@xidiandaily
re: 08年10月25日 merlinfang 2008-11-09 23:49
怎么會呢,if else 解釋成匯編不過cmp , je而已.
如果是虛函數(shù),也是查找虛函數(shù)表,性能差不多,占用空間更多.
re: 程序員,如何規(guī)劃你的一生? merlinfang 2008-11-09 23:33
我也是,沒有擺脫困擾啊,
已經(jīng)工作五年,在這個公司,技術(shù)已經(jīng)不再前進(jìn)了.
只是在做業(yè)務(wù)而已,感覺人生是否就要碌碌無為的過去了
現(xiàn)在還在猶豫是否買房,是否該去做房奴?
re: 八皇后問題的一種解法-隨機(jī)試探法 merlinfang 2008-11-01 11:48
貪婪法比較簡單,就是一種策略
我所了解的如下:
象一般的求解是遍歷(你這里是隨機(jī)遍歷), 但貪婪法在遍歷之前先進(jìn)行排序,即對可遍歷的子節(jié)點(diǎn)進(jìn)行排序,排序的規(guī)則是誰的后續(xù)空格少,誰就先遍歷.
我以前測試的速度要快N倍,特別到幾十皇后的時候,遍歷法根本跑不動
re: 八皇后問題的一種解法-隨機(jī)試探法 merlinfang 2008-10-28 19:12
求出任意一種算法,還是使用貪婪法快啊
re: VC6正在被拋棄 merlinfang 2008-08-19 20:57
覺得VC6就挺好,關(guān)鍵是順手
現(xiàn)在觀念變了,以前還用標(biāo)準(zhǔn)模板庫,現(xiàn)在已經(jīng)徹底不用了.C++完全被我當(dāng)成帶類的C了.
設(shè)計(jì)的再好也就那個樣,程序?qū)Φ木涂梢粤?
re: 《成吉思汗》觀后感 merlinfang 2008-08-10 20:45
我也覺得現(xiàn)在搞什么中華民族土了,沒點(diǎn)血性了.
以前都是稱大漢.
特別是那些清劇,更tmd土,那些也是一樣的
re: 將torrent文件解析成xml文件格式 merlinfang 2008-05-22 22:28
pieces標(biāo)簽應(yīng)該屏蔽掉的,那個是BT文件的CRC校驗(yàn)碼。xml無法正確顯示吧。
re: 一個輕量級家用爬蟲 merlinfang 2008-05-13 21:57
爬蟲還是很復(fù)雜的,你這個太簡單了.就比如連接來說吧,你只處理了<a href>的,還有其他類型的,腳本的等等.
再比如排重吧,你只是避免同一url的訪問,但是同一url也要多次訪問的,因?yàn)閮?nèi)容會變化的,策略上有考慮.再考慮分布式多線程,排重就更難了
re: CVS配置與管理[轉(zhuǎn)載] merlinfang 2008-04-22 23:35
3.6. Error reading from server <whatever>: -1: Unknown error
This means that the client was able to connect to the server, but something disconnected it before authentication could take place.
The usual cause for this is Antivirus and/or 'Personal' firewalls, which can break Handle Inheritance. To verify the culprit uninstall all such programs from your machine and try again (simply disabling them is usually not enough). If it then works re-install the software until you find which one is causing the breakage (then file a bug with the vendor concerned).
If all else fails try WinsockXPFix which restores the TCP/IP stack to a working state after spyware/AV/firewalls cause problems.
In particular the Nod32 av exhibits this behaviour. The current workaround is to disable the 'IMON' service and reboot. Eset have been contacted about this problem. Until it is fixed it is recommended that Nod32 is not used on a machine running cvsnt.
Also known to break the stack is Aventail AutoSocks. No known workaround other than to uninstall it.
re: 小論一下C++的持久層 merlinfang 2008-01-30 20:28
:),我倒不認(rèn)同各位的評論,我覺得持久層的精髓在于設(shè)計(jì)的是類與類之間的關(guān)系,然后按照消息的方式來操作.
re: 這幾天玩《王者無雙》 merlinfang 2007-11-17 20:36
沒看出來什么名堂,不過是滿難的,不知道你在墻上怎么下來的
re: 寫個加密軟件的沖動 merlinfang 2007-08-15 20:45
暈,真的假的呀?把加密后文件發(fā)過來看看還有密碼,郵箱:merlinfang@126.com
還好這個版本還沒有用上AES,我?guī)湍憬饷茉囋?/div>
終于找到原因了 merlinfang 2007-07-03 22:37
使用如下程序替換設(shè)置ds與si的部分,主要原因是使用靜態(tài)地址分配,因此只有采用標(biāo)號差來計(jì)算距離數(shù)據(jù)區(qū)的長度,最終確定數(shù)據(jù)區(qū)的位置。
mov ax,0
mov ds,ax
lea bx,T
lea ax,data
sub ax,bx
add ax,800h
mov si,ax
發(fā)現(xiàn)人為什么看不進(jìn)去了呢