diff --git a/ax_funktions.hpp b/ax_funktions.hpp index 6b88b1a..f5a34dc 100644 --- a/ax_funktions.hpp +++ b/ax_funktions.hpp @@ -13,4 +13,8 @@ namespace ax{ int sqrt(int x){ return x*x; } + + char shift(char x){ + return x-1; + } } \ No newline at end of file diff --git a/main.cpp b/main.cpp index 9ae665e..3990528 100644 --- a/main.cpp +++ b/main.cpp @@ -18,5 +18,9 @@ main() } ax::print_number(ax::sqrt(3)); + + std::cout << "a " << "wird zu: " << ax::shift('a')<< std::endl; + + }; \ No newline at end of file