Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Запаковать строку в JSON (Boost)
#include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/ptree.hpp> #include <iostream> #include <cstdlib> #include <string> int main() { std::string myString = "Ohayo!"; boost::property_tree::ptree rootHive; rootHive.put("my_string", myString); std::stringstream encoded; boost::property_tree::write_json(encoded, rootHive); std::cout << encoded.str() << std::endl; return EXIT_SUCCESS; }
run
|
edit
|
history
|
help
0
cast operator
multiply two numbers (previous)
Quadratic Equation
Partition to K Equal Sum Subsets
32bit
C++ virtual dispose
4149 coj WIP
water drop/ water land
Weighted Index
FloydTriangle