xtd 0.2.0
join.cpp

Shows how to use xtd::string::join method.

#include <xtd/console>
#include <xtd/string>
using namespace xtd;
auto main() -> int {
auto result_str = string::join(", ", {"One", "Two", "Three", "Four", "Five"});
console::write_line(result_str);
}
// This code produces the following output :
//
// One, Two, Three, Four, Five
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8