From 270e7cc8728b2676829da66984638df657d14a60 Mon Sep 17 00:00:00 2001 From: Arotex Date: Sat, 4 Oct 2025 13:50:24 +0200 Subject: [PATCH] charshift funktion --- ax_funktions.hpp | 4 ++++ main.cpp | 4 ++++ 2 files changed, 8 insertions(+) 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