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
snake logic complete c++
StrTok
matrix2
single_digit
getline vs cin
Gauss 4x4
kadane's algorithm
hack qus
shell sort
mytemp