fix some example and readme
This commit is contained in:
21
bin/examples/range/main.cpp
Normal file
21
bin/examples/range/main.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "hack/range/save_to_file.hpp"
|
||||
#include "hack/range/sort.hpp"
|
||||
#include "hack/logger/logger.hpp"
|
||||
|
||||
auto main(int argc, char *argv[]) -> int
|
||||
{
|
||||
std::vector<int> v { 4, 4, 6, 1, 4, 3, 2 };
|
||||
std::forward_list<int> l { 8, 7, 5, 9, 0, 1, 3, 2, 6, 4 };
|
||||
|
||||
hack::range::sort(v);
|
||||
hack::range::sort(l);
|
||||
|
||||
hack::log()(v);
|
||||
hack::log()(l);
|
||||
|
||||
hack::range::save_to_file("/mnt/raid/projects/hack/hack/bin/examples/range/range.txt", v);
|
||||
hack::range::save_to_file("/mnt/raid/projects/hack/hack/bin/examples/range/range.delemiter.txt", v, ":");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user