2008-05-11から1日間の記事一覧

std::bind*

C++

C++のbindを勉強しました.なるほどねー. #include <iostream> #include <vector> #include <functional> #include <algorithm> #include <boost/fcpp/prelude.hpp> int main(){ boost::fcpp::list<int> ls = boost::fcpp::enum_from_to(0, 9); std::vector<int> v; std::copy(ls.begin(), ls.end(), back_inserter(v)); std::copy(v.beg</int></int></boost/fcpp/prelude.hpp></algorithm></functional></vector></iostream>…

できたーww

一つ目はできたーw #include <iostream> #include <map> #include <vector> #include <algorithm> #include <boost/bind.hpp> struct test { void show(int x) const{ std::cout << x << std::endl; } }; int main(){ typedef std::map<int, object> my_map; typedef my_map::value_type my_pair; std::map<int, test> m; // まぁこの例</int,></int,></boost/bind.hpp></algorithm></vector></map></iostream>…

これをやりたいw

以下のをやりたいけど,できんw #include <iostream> #include <map> #include <vector> #include <algorithm> #include <boost/bind.hpp> struct test { void show(int x) const{ std::cout << x << std::endl; } }; int main(){ std::map<int, test> m; // まぁこの例だとstd::mapの意味はないですがw m[0] = test(); m</int,></boost/bind.hpp></algorithm></vector></map></iostream>…

std::bind*って…

C++

std::bind*って引数が2つまでしか対応してないんだ…. Boost.Bindを使えってことか….

boost::bindすげーw

Boost.Bindすげーw これは感動するwww

別のファイル

AFC

5時間ほど(libファイルを作るプロジェクトの)プログラミングして. そのlibファイルの動作を試すための別のプロジェクトをコンパイルしたら,今まではできてたのに,リンカたん: void afclib::gui::directx::resource::texture::width() constの実装が見つか…