Okay here goes..I just started my first class of C++ and my teacher is impossible to understand. I have had two years of VB and realize that VB and C++ are very different. I am an anxious learner but after my first class my teacher has given us some assignments and explained nothing. He has told us that our textbook won't do us much good so I am feeling at a loss. I don't want anyone to do my work for me, but I could really use some good instructional help to get me rolling. I'm sure I will be asking several questions in my first few weeks of class. Again I wouldn't expect anyone to do my work for me..just some help. So here is my first assigned problem.
1. Write an interative function power1 to compute xn for n>0.
This is the problem as it is listed in the book. Now I am not sure of how to solve it. I was given a formula to supposedly
use to reach my objective.
Formula: factorial(n)=n * (n-1) * (n-2) * ...*1 for any integer n>0
Could someone help shed some light on this for me. This newbie would be greatly appreciative. Thanks to all who do (Y)
Nick