文章出處:http://topic.csdn.net/u/20070924/22/75c81814-1632-40c0-998b-ab876bd81558.html 類的成員函數後面加 const 是什麼意思? 給成員函數隱含的 this 指標加 const,表示這個 this 指向的東西是 const 的,也就是說這個函數中無法改動資料成員了。const是一種保證,告訴你這個成員不會改變對象的狀態。 有如下類聲明: class Pig { long _lx;
strtok()這個函數大家都應該碰到過,但好像總有些問題, 這裡著重講下它 首先看下MSDN上的解釋:char *strtok( char *strToken, const char *strDelimit ); ParametersstrToken String containing token or tokens. strDelimit Set of delimiter characters. Return ValueReturns a pointer to the next token
今天學到一個新術語——AddressPrefix,記錄下來,嘿嘿:-) IP address prefixes are patterns which match the first n binary bits of an IP address. The standard syntax is to write the prefix bits that must match in dotted-quad format, followed by a slash and then the number
文章出處:http://www.cppblog.com/thisisbin/archive/2010/02/07/107444.html To Understand the backlog argument, we must realize that for a given listening socket, the kernel maintains two queues: 要明白backlog參數的含義,我們必須明白對於一個listening socket,
文章出處: http://topic.csdn.net/u/20080429/17/689d07f9-1199-4c8f-b7b7-60b24609270f.html Depends on how the OS schedule threads to CPUs, and how applications set their threads' processor affinity In windows, the operation system does the allocation