scrap book

( ..)φメモメモ

2018-05-18から1日間の記事一覧

null文字のないchar[]の変換メモ

null文字のないchar[]の変換メモ。面倒code.cpp #include <iostream> #include <sstream> #include <iomanip> #include <boost/lexical_cast.hpp> using namespace std; using namespace boost; // print 'lexical_cast'ed cstr void casttest( const char* cstr ) { cout << "[" << cstr << "]" << endl; try { c</boost/lexical_cast.hpp></iomanip></sstream></iostream>…