2008-12-15から1日間の記事一覧

Maybeモナドでしりとり

C++

作ってみました。 最後と最初がつながってなかったり、最後が「ん」の文字列が入力されたらその後の処理はしません。 はこちら #include <iostream> #include <string> #include <locale> #include <shand/maybe.hpp> using namespace std; using namespace shand; inline maybe<wstring>::type last_and_first(co</wstring></shand/maybe.hpp></locale></string></iostream>…