charshift funktion

This commit is contained in:
2025-10-04 13:50:24 +02:00
parent 3ac7122589
commit 270e7cc872
2 changed files with 8 additions and 0 deletions

View File

@@ -13,4 +13,8 @@ namespace ax{
int sqrt(int x){ int sqrt(int x){
return x*x; return x*x;
} }
char shift(char x){
return x-1;
}
} }

View File

@@ -18,5 +18,9 @@ main()
} }
ax::print_number(ax::sqrt(3)); ax::print_number(ax::sqrt(3));
std::cout << "a " << "wird zu: " << ax::shift('a')<< std::endl;
}; };