TU-Programmieren_2/lab3/taskA.cpp
2025-04-09 10:22:44 +02:00

34 lines
833 B
C++

/// @file
/// @brief task A
/// g++ -std=c++20 taskA.cpp -Imodules -o taskA && ./taskA
#include <functional>
#include <iostream>
#include <vector>
#include "iue-rnd/random.hpp" // iue::rnd::UniformValue
#include "taskA.Vector.hpp" // todo: implement Vector
int main() {
// first constructor
std::vector<double> data = {2, 4, 6, 8};
// Vector v1(data); // @todo: uncomment
// second constructor
double start = 0;
double end = 5;
unsigned int N = 6;
// Vector v2(start, end, N); // @todo: uncomment
// third constructor
auto callable = iue::rnd::UniformValue(0.0, 1.0);
// Vector v3(N, callable); // @todo: uncomment
// v1.print(); // @todo: uncomment [2, 4, 6, 8]
// v2.print(); // @todo: uncomment [0, 1, 2, 3, 4, 5]
// v3.print(); // @todo: uncomment [6 random values between 0..1]
return 0;
}