add base comparator aray from different app
This commit is contained in:
10
bin/examples/comparators/main.cpp
Normal file
10
bin/examples/comparators/main.cpp
Normal 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");
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user