C++と色々

主にC++やプログラムに関する記事を投稿します。

2014-11-15から1日間の記事一覧

VC++2015PRでURIエンコード

Visual C++ 2015でC++1zで提案されているTerse range-based for loopsと、C++11のUnicodeリテラルが入ったので使ってみました。 #include <algorithm> #include <iomanip> #include <sstream> #include <string> namespace { std::string const unreserved_chars = "abcdefghijklmnopqrstuvwxyzABC</string></sstream></iomanip></algorithm>…