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

27 lines
595 B
C++

/// @file
/// @brief task A
/// g++ -std=c++20 taskA.cpp -o taskA && ./taskA
#include <iostream>
/// @todo create a namespace with one function in it
namespace taskA {
void print() {
std::cout << "Hello from taskA" << std::endl;
}
}
/// @todo create a second namespace with one function in it, use the same function name as above
namespace taskB {
void print() {
std::cout << "Hello from taskB" << std::endl;
}
}
/// @todo write a main-function and call the two functions you defined above
int main() {
taskA::print();
taskB::print();
return 0;
}