2010-01-01ãã1ã¶æéã®è¨äºä¸è¦§
ãããã㨠#!/usr/bin/env ruby require 'rubygems' require 'pp' arr = Array.new(10, Hash.new) i=0 arr.each{|h| h["num"] = i h["test"] = "test" if i == 5 i+=1 } pp arr åãHashãå ¨è¦ç´ ã«å ¥ãã®ã§ãããªã [{"num"=>9, "test"=>"test"}, {"num"=>9â¦
"ã¨'ã®åã«ããã¯ã¹ã©ãã·ã¥ãã¤ãããã \\\\ã¨4ã¤é£ç¶ã§æ¸ããªãã¨ãç½®æã§ããªãã£ããã¾ãã4ã¤ã¨ã¯ã regex_replace.cpp #include <iostream> #include <string> #include <boost/regex.hpp> using namespace std; using namespace boost; int main(int argc, char* argv[]){ string str = </boost/regex.hpp></string></iostream>â¦
å¹´æ«ãããï¼ããpage=çªå·æå®ã§ã¯100人以ä¸åå¾ã§ããªããªã£ã¦ã¦ãcursor=-1ãæå®ãã¦next_cursorã辿ã£ã¦ããä»æ§ã«ãªã£ã¦ãã®ã§ãfollower/followingåå¾ãä¿®æ£ããã æå¾ã®ãã¼ã¸ã«ã¯next_cursorãç¡ãã®ã§ç¡ããªãã¾ã§ã«ã¼ãããã http://bitbucketâ¦
atomããæ¬æãåã£ã¦ããã ãã©ããªããrssãããããªãã¨feed-normalizerãã¨ã©ã¼ãåºãããã«ãªã£ãã®ã§rssã«åãæ¿ããã ã¤ãã§ã«ããã£ããã ããå¼æ°ãåããé¨åãæãå ããã ãããã¦ARGVãå å·¥ãã㨠# ä¿åããpageãå¼æ°ã§æå® pages = ARGV.mâ¦
boost::anyã§ä½åã§ãå ¥ãå¤æ°ãä½ãããåè letsboost::any æ¬ã®è«: Inside Boost.Any qune: ããã°ã©ãã³ã°ã¡ã¢ - boost::any ãèªã å é¨ã®å®è£ ã«ã¤ãã¦ã詳ããæ¸ããã¦ãã¦åå¼·ã«ãªã£ãããtemplateã¯ãªãã¨ãªãããããã©ããããC++ã§classè¨è¨ããâ¦
C++ã§http getããããã wget http://jaist.dl.sourceforge.net/project/curlpp/curlpp%20-%20devel/0.5.0-rc1/curlpp-0.5.0-rc1.tar.gz tar -zxvf curlpp-0.5.0-rc1.tar.gz cd curlpp-0.5.0-rc1 ./configure --prefix=/opt/local makemakeãéããªã makemâ¦