Untitled
#include <iostream> #include <array> int main() { std::array< double, 5 > numbers = { 7.5, 3.2, 15.0, 17.2, -3.3 }; for (const auto& n : numbers) { std::cout << n << ", "; } return 0; }
Leave a Comment
#include <iostream> #include <array> int main() { std::array< double, 5 > numbers = { 7.5, 3.2, 15.0, 17.2, -3.3 }; for (const auto& n : numbers) { std::cout << n << ", "; } return 0; }