2009-07-22から1日間の記事一覧

The Rise and Fall of C++0x Concepts

C++

The Rise and Fall of C++0x Concepts

パスからファイル名を取得

C++

comp.lang.c++ - How to get filename from path in C++ Boost.Filesystem使えば簡単なのにね。 #include <iostream> #include <boost/filesystem.hpp> using namespace std; int main() { boost::filesystem::path path("C:\\a.txt"); cout << path.filename() << endl; // a.txt } こういう</boost/filesystem.hpp></iostream>…