Linker Tools Warning LNK4098 : https://msdn.microsoft.com/en-us/library/aa267384(v=vs.60).aspx
https://msdn.microsoft.com/en-us/library/aa293346(v=vs.60).aspx
https://stackoverflow.com/questions/3007312/resolving-lnk4098-defaultlib-msvcrt-conflicts-with
<sxh cpp>
#include <vector> #include <iterators> // for ostream_iterator #include <algorithm> // for copy std::vector<int> v(0.0, 4); std::copy(v.begin(), v.end(), ostream_iterator<int>(out, ",");
</sxh>
<sxh cpp>
std::string s=std::string(12, '*');
</sxh>
<sxh cpp>
#include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/classification.hpp> #include <boost/lexical_cast.hpp> #include <vector> #include <string>
std::string my_string("23x23,11 22"); std::vector<std::string> tok; std::vector<int> numbers; bool isOK = true; boost::split(tok, my_string, boost::is_any_of(",x ")); try { std::transform(tok.begin(), tok.end(), std::back_inserter(numbers), &boost::lexical_cast<int,std::string>); } catch (boost::bad_lexical_cast e) { isOK = false; }
</sxh>
<sxh cpp> std::ostringstream oss; …. oss.str( std::string() ); oss.clear(); </sxh> === Virtuality === * http://stackoverflow.com/questions/353817/should-every-class-have-a-virtual-destructor * http://stackoverflow.com/questions/461203/when-to-use-virtual-destructors * www.gotw.ca/publications/mill18.htm