C++ã«æ £ãã¦ãã人ã«ã¨ã£ã¦ã¯å½ããåã®ãã¨ãããããªããã©ããã¾ãC++ã«è¦ªããã§ããªãå ´åãæ§é ä½ãæ ¼ç´ããSTLã³ã³ããã«å¯¾ãã¦ã¢ã«ã´ãªãºã <algorithm>ãæå¹ã«æ´»ç¨ãã¦ããªããããããªããããã§ãæ§é ä½ãæ ¼ç´ããvectorãªã©ã®STLã³ã³ããã§ã½ã¼ããæ¢ç´¢ãåé¤ãªã©ã®ã¢ã«ã´ãªãºã ã®å©ç¨æ¹æ³ãæ¸ãã¦ããã struct A { int n; int* p; }; ä¸è¨ã®ãããªæ§é ä½ã¯ããè¦ãããå½¢ã ã¨æããæ§é ä½Aã«æ´æ°åå¤æ°ã®nã¨ãã¤ã³ã¿åå¤æ°ã®pããããä¾ãã°nã«é åã®è¦ç´ æ°ãpã«ãã®é åã確ä¿ãããããããããã£ãæ§é ä½ã以ä¸ã®ããã«vectorãªã©ã®STLã³ã³ããã使ã£ã¦æ ¼ç´ãããã¨ã¯å¤ã ããã vector<A> A_list; ããã§æ§é ä½Aãã³ã³ããã«æ ¼ç´ã§ããããã ãã¨ããã§ãSTLã³ã³ããã使ç¨ããä¸ã¤ã®çç±ã¨ãã¦ä¾¿å©ãªã¢ã«ã´ãªãºã ãå©ç¨ã§ãããã¨ãæãã
ããã§ã¯ãå ¥åºåã¹ããªã¼ã ã¨å ±ã«ä½¿ç¨ãããããã¥ã¬ã¼ã¿ã®ä½ãæ¹ã«ã¤ãã¦è§£èª¬ãã¾ãããããã¥ã¬ã¼ã¿ã¯ãé¢æ°ã§ããã¯ã©ã¹ã§ãå®ç¾ã§ããå°ãæ¯è²ã®å¤ãã£ããããããåå¨ã§ãããããã¥ã¬ã¼ã¿ãç解ããã«ã¯ãªãã¬ã¼ã¿ã®ãªã¼ãã¼ãã¼ãã®ç¥èãå¿ é ã§ãã®ã§ããã¡ããã覧ãã ããã ãããã¥ã¬ã¼ã¿ã¨ã¯ å¼æ°ã®ãªããããã¥ã¬ã¼ã¿ã®ä½ãæ¹ å¼æ°ã®ãããããã¥ã¬ã¼ã¿ã®ä½ãæ¹ ã°ãã¼ãã«é¢æ°ã¨ãã¦ä½æããæ¹æ³ ã°ãã¼ãã«ãªé¢æ°ãªãã¸ã§ã¯ãã¨ãã¦ä½æããæ¹æ³ ã¯ã©ã¹ãªãã¸ã§ã¯ãã¨ãã¦ä½æããæ¹æ³ ãããã¥ã¬ã¼ã¿ã®å¿ç¨ä¾ãprintf 風ãããã¥ã¬ã¼ã¿ ãããã¥ã¬ã¼ã¿ã¨ã¯ ãã¼ã¸ã®å é 㸠ãããã¥ã¬ã¼ã¿ã¨ã¯ãcinãcout ãªã©ã代表ã¨ããå ¥åºåã¹ããªã¼ã ã«å¯¾ãããæ¿å ¥æ¼ç®å << ãæ½åºæ¼ç®å >> ã¨å調ãã¦ãå ¥åºåãã©ã¼ãããã®å¤æ´ãè¡ããªã©ã®ç®çã§è¨è¨ããããã®ã§ãæ¨æºã©ã¤ãã©ãªã§ã¯ endlãsetwãs
std::lower_boundã使ããã¨ããã¨ããã§çåã struct some_huge_structA { int value; int other1; int other2; //and many member }; ã¿ãããªæ§é ä½ã®valueã§sortããã¦ãã¦ãvalueã«ã¤ãã¦ã®æ¯è¼ã®ãã¨ã lower_boundã§åå¾ãããã¨ãã å ããlower_boundã®å®ç¾© std::lower_bound(_FwdIt _First, _FwdIt _Last, const _Ty &_Val); std::lower_bound(_FwdIt _First, _FwdIt _Last, const _Ty &_Val, _Pr _Pred); 3å¼æ°ã®å ´åã¯ãæ¯è¼ãããã¨ãããã³ã«some_huge_structAãå¿ è¦ãªã®ã§ã ããããªãã 4å¼æ°ã®å ´åã bool ope
Recent entries Apache2.4ã®ãªãªã¼ã¹äºå®ã¯æ¥å¹´(2011å¹´)åã(ããã¾ã§äºå®) inoue 2010-12-23 Herokuã®çºé³ inoue 2010-12-20 éèªè¨äºãã½ããã¦ã§ã¢ã»ãã¹ãPRESS Vol.9ãã®åç¨¿å ¬é inoue 2010-12-18 IPAæªè¸ã®ãã¥ã¼ã¹ inoue 2010-12-15 å´åºæ³ã¨ããã³ã²ã¼ã inoue 2010-12-06 ããã³ãã¨ã³ãã¨ã³ã¸ã㢠inoue 2010-12-03 ASCII.technologiesèªã«MapReduceã®è¨äºãæ¸ãã¾ãã inoue 2010-11-25 æè¡è©è«ç¤¾ãã¼ãã§ã¯ãã·ãªã¼ãºçµ¶è³çºå£²ä¸ inoue 2010-11-24 éèªé£è¼ãEmacsã®ãã©ããããã®å稿(part8)å ¬é inoue 2010-11-22 RESTã®å½æ inoue 2010-11-22 ãã
Apache Portable Runtime(APR)ã©ã¤ãã©ãªããã¼ã¹ã«ãã¦éçºããã HTTPã¯ã©ã¤ã¢ã³ãã©ã¤ãã©ãª serfãFreeBSDã®portsã³ã¬ã¯ã·ã§ã³ã« 追å ããã¾ããã http://code.google.com/p/serf/ ãã«ãã³ãã¯ã·ã§ã³ãéåæå¦çãªã©ãè¡ããã¨ãã§ãã¾ãã ã¹ãã³ãµã¼ãªã³ã¯
apacheã¢ã¸ã¥ã¼ã«å ã§webAPIãå¼ãã§XMLã解æããå¿ è¦ããããããC/C++ã§å©ç¨ã§ããXMLãã¼ãµã調ã¹ã¦ã¿ãã Cã 㨠expat libxml2 C++ã 㨠tinyXml Xerces ãªã©ãªã©ä»ã«ããã¾ãã¾ãªã©ã¤ãã©ãªãããããã ãä»åã¯libxml2ã使ã£ã¦ãã¼ã¹ãã¦ã¿ãäºã¨ããã XMLã®ç¥èã«ä¹ããã®ã¨ Cè¨èªãè¦æãªã®ã¨ ã©ã¤ãã©ãªã®APIãå¤ãã㦠ãªã©ãéãªã£ã¦ããªãè¦æ¦ãã¾ããã ã§ãXpathã使ããã®ã¯ä¾¿å©ã ãªãã¨æã£ãã ãã¡ãã®æ¹ã®ã³ã¼ããåèã«ä½ããã¦ããã ãã¾ããã yahoo!æ²ç¤ºæ¿ã®RSSã®itemè¦ç´ ãåºåããã ãã®ããã°ã©ã #include <stdio.h> #include <libxml/xmlreader.h> #include <libxml/xpath.h> enum Status { Success = 0, Fail
GNU/Linux ã§ã®ã¹ã¬ããããã°ã©ãã³ã° NPTL (Native POSIX Thread Library) Programming. 以åãã GNU/Linux ã§ã¹ã¬ããããã°ã©ãã³ã°ãããããã®ç°¡åãªã¬ã¤ããæ¸ãããã¨æã£ã¦ãã¾ãããä»æ´ã¹ã¬ããããã°ã©ãã³ã°ã«ã¤ãã¦æ¸ãã¦ãç®æ°ãããã®ã«ãªãã¨ã¯æããªãã®ã§ãããåã㦠NPTL (Native POSIX Thread Library) ã使ã£ãããã°ã©ã ãããã¨ããæ¹ã«ã¯ãããããããå½¹ã«ç«ã¤æ å ±ããããã¾ãããã¯ããã¯æã å°ããªããã°ã©ã ãæ¸ãã¦åããã¦ã¿ããæã£ãããç°¡åãªãã¨ã«é©ãããã§ããããã¹ã¬ããããã°ã©ãã³ã°ã¨è¨ã£ã¦ãé£ãããã¨ã¯ãªã«ãããã¾ãããã©ã¤ãã©ãªã沢山ä»äºããã¦ãããããã§å¿«é©ã«ä½¿ããã¨ãã§ãã¾ãã æ¬æä¸ã§ã¯ glibc ã®ãã¼ã¸ã§ã³ã«ããéãã«ã¤ãã¦ã触ãã¾ããåç §ãããã¼ã¸ã§ã³ã¯ gli
æååãé£çµããæ¼ç®åãããããLast modified: May 15, 2002 AWK ã«ã¯ï¼æååãé£çµããæ¼ç®åã¯ç¹ã«ç¨æããã¦ããªããæååãï¼ç©ºç½ã§åºåã£ã¦ï¼ä¸¦ã¹ããã¨ã«ããé£çµãããã ä¾ãã°ï¼a = "this" "is" "a" "test" ã¨ããä»£å ¥æãæ¸ãã¨ï¼å¤æ° a ã®å 容ã¯ï¼"this is a test" ã¨ãªãã æåã®é£çµã¯ãã®ãããªå®éã®æååï¼æååå®æ°ï¼ã§ãªãã¦å¤æ°ã®å ´åãï¼åãããã«è¡ãããã ä¾ãã°ï¼a = "XYZ", b = "abc" ã®ã¨ãï¼x = a "and" b ã«ããï¼ å¤æ° x ã®å 容ã¯ï¼"XYZ and abc" ã¨ãªãã ç´åã®ãã¼ã¸ã¸æ»ããã E-mail to Shigenobu AOKI
(追è¨) ãã®è¨äºã¯å ¬éããæéãçµã£ã¦ãããå 容ãå¤ããªã£ã¦ãã¾ãã æ¬ç¨¿ã§ã¯ããã§ã«ãã©ã¤ãã¼ããªWebãµã¼ããéç¨ãã¦ãã人åãã«Gitãµã¼ãã®æ§ç¯æ¹æ³ã説æãã¾ããã²ã¨æéããããã ãã§Gitãµã¼ããæ§æã§ãã¾ããWebãµã¼ãããªã人ã¯GitHubã§ãã©ã¤ãã¼ããªãã¸ããªãä½ã£ãæ¹ãæ©ãã¦å®ãã¦æ¨ãããããã¾ããã è¦ä»¶ 以ä¸ã®è¦ä»¶ãèãã¦ã¿ã¾ãã SSHã§Gitãªãã¸ããªã«ã¢ã¯ã»ã¹ãããã HTTPSã§Gitãªãã¸ããªã«ã¢ã¯ã»ã¹ãããã Webãã©ã¦ã¶ã§ãªãã¸ããªãé²è¦§ãããã Gitãªãã¸ããªã«ã¯æ©å¯æ§ã®é«ãæ å ±ãæ ¼ç´ããå¯è½æ§ãããã å ·ä½çã«ã¯ã git clone git@git.example.com:/something.git ã¨ãã git clone https://myname@git.example.com/something.git ã¨ããããã§ãã Gi
Redirecting⦠Click here if you are not redirected.
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}