2008-08-01から1ヶ月間の記事一覧
100行弱しかコードを書けない俺の脳味噌乙。
Effective C++は基礎だと思う。読んだら、メモリの面倒を見てくれないJavaとしてではなく、C++のpit hallを回避し、C++の挙動を踏まえ、C++の流儀になんとなく則ったコードが読み書きそろばんできるようになる。ただ、それで終わりと言うのはちょっと。STLと…
ふつうのHaskell第5章。このへんから面白くなってきそうな感じ。
やはり書を読まん人間がそれぶって書いてもろくなもんがでない。
CはなんかもういいのでC++でquine書いてみた。#include <iostream> #include <string> #include <boost/algorithm/string/replace.hpp>int main() { using std::string; using namespace boost::algorithm; string str("N#include <iostream>N#include <string>N#include <boost/algorithm/string/replace.hpp>NN" "int main() {N using std:…</boost/algorithm/string/replace.hpp></string></iostream></boost/algorithm/string/replace.hpp></string></iostream>