Ok. I tried some more. This is what i got.
It works. But it just seams so , i dont know, uncorrect. I seams like i use a method that is not what the author of my book intended.
int count = 1;
float myFunc(unsigned short int x, unsigned short int y);
unsigned short int x = 0;
unsigned short int y = 0;
std::cout<<"Write a exponent: ";
std::cout<<"\nNow write the number: ";
sum = y;
z = myFunc(x,y);
std::cout<<"\n the answer is:" << z;
float myFunc(unsigned short int x, unsigned short int y)
sum = sum * y;