mirror of
1
0
Fork 0
modern-cmake/examples/extended-project/apps/app.cpp

18 lines
303 B
C++
Raw Normal View History

2019-08-07 07:06:55 +02:00
#include <modern/lib.hpp>
#include <fmt/format.h>
#include <iostream>
#include <vector>
#include <tuple>
int main() {
std::vector<double> input = {1.2, 2.3, 3.4, 4.5};
2020-08-04 00:16:52 +02:00
2019-08-07 07:06:55 +02:00
auto [mean, moment] = accumulate_vector(input);
fmt::print("Mean: {}, Moment: {}\n", mean, moment);
return 0;
}