TU-Programmieren_2/exercise7/task1.main.cpp
2025-04-09 10:22:44 +02:00

26 lines
1.0 KiB
C++

/// @file
/// @brief Task1: "single-file" executable C++ program
/// @todo Include standard library headers as needed
namespace task1 {
/// @todo Implement a function template 'print' for a template type T according to the description below:
/// - a std::vector with elements of type T is received via a parameter (std::vector<T>)
/// - the function then prints all elements to the console **without separation** (i.e. {1,2,3} => 123) ending with a
/// new line
/// - the function has no return value
/// @note You can assume that the template type T is printable, i.e. this works:
/// T value{};
/// std::cout << value;
} // namespace task1
/// @todo Implement a 'main' function conducting the following tasks in this order:
/// - fill a std::vector<int> with with the following sequence of values
/// 3, 6, 0, 0, 5, 0
/// - fill a std::vector<std::string> with with the following sequence of values
/// "e", "lec", "tro", "mag", "net", "ic"
/// - use your function to print both vectors to the console separately
int main() { return 0; }