how to time a programtime() calculates the number of seconds since January 1, 1970. Use it at the beginning of the prog...
*Dur-dur* What's wrong with my code?Good point. Recursion is indeed terribly inefficient. But for calculating the factorial of n < 25, a...
Functions returning pointer to arrayThank you, I forgot that you have to delete in C++. I know that passing by reference is very comm...
Functions returning pointer to arrayI got it! Using dynamic arrays with "new" is the solution. Sorry for the bother :)
*Dur-dur* What's wrong with my code?Helios is right, 100! is too big. Try it with a smaller number. It's easier to verify too. For examp...
This user does not accept Private Messages