add base comparator aray from different app

This commit is contained in:
2025-10-30 13:40:36 +03:00
parent 44f7c2246e
commit 7586d07243
4 changed files with 136 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
#include "hack/comparators/comparators.hpp"
auto main(int argc, char *argv[]) -> int
{
std::vector<float> frequencies = { 30.81, 138.59, 146.83, 155.56, 164.81, 174.61, 185.00, 196.00, 207.65, 220.00, 233.08, 246.94 };
float c_array[] = { 130.81, 138.59, 146.83, 155.56, 164.81, 174.61, 185.00, 196.00, 207.65, 220.00, 233.08, 246.94 };
hack::comparators::source(c_array, frequencies.size(), "/mnt/raid/projects/hack/hack/bin/examples/comparators/test.txt");
hack::comparators::compare(frequencies, "/mnt/raid/projects/hack/hack/bin/examples/comparators/test.txt");
}

View File

@@ -5,8 +5,9 @@ executable(
# 'examples/math/main.cpp',
# 'examples/range/main.cpp',
# 'examples/patterns/main.cpp',
'examples/logger/main.cpp',
# 'examples/logger/main.cpp',
# 'examples/exception/main.cpp',
'examples/comparators/main.cpp',
dependencies : deps,
cpp_args: args,
include_directories : inc