hack/bin/main.cpp

18 lines
371 B
C++
Raw Normal View History

2022-03-01 12:03:12 +03:00
#include <iostream>
#include "string/string.hpp"
2022-03-02 11:08:14 +03:00
#include "range/range.hpp"
2022-02-28 12:44:18 +03:00
int main(int argc, char *argv[])
{
2022-03-02 11:08:14 +03:00
{// ex: split_str
std::string str { "asdf,qwer,zxcv" };
hack::v_str v = hack::split_str(str, ',');
for (const auto& c : v) std::cout << c << std::endl;
}
2022-03-01 12:03:12 +03:00
2022-03-02 11:08:14 +03:00
{// ex: within
std::cout << hack::within(12, 34, 12, 23, 31) << std::endl;
}
2022-02-28 12:44:18 +03:00
}