User: xyzordie

  • Public profile

User profile: xyzordie

User info
User name:xyzordie
History
Joined:
Number of posts:6
Latest posts:

how to time a program
time() 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 array
Thank you, I forgot that you have to delete in C++. I know that passing by reference is very comm...

Functions returning pointer to array
I 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