From bec90eeec483f4fd685bb28758cdf55897bc0b3e Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 15 Aug 2024 17:26:06 +0200 Subject: more exercises and tests --- 3p41.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 3p41.cpp (limited to '3p41.cpp') diff --git a/3p41.cpp b/3p41.cpp new file mode 100644 index 0000000..4ae2247 --- /dev/null +++ b/3p41.cpp @@ -0,0 +1,24 @@ +#include +#include +#include "sales_data.hpp" +#include "sales_item.hpp" +#include + +/* + * + * 3.41 + * + * Same thing as i did on my vec-arr-test.cpp + */ + +int main () { + + int arr[] = {23,432423,43253,123,787,45677,3345,657784,3453}; + std::vector va(std::begin(arr), std::end(arr)); + for(auto vaa : va) { + std::cout << vaa << " "; + } + + std::cout << std::endl; + return 0; +} -- cgit v1.2.3