any nice free visual C compiler like Miracle C Compiler?
Frankly, for Windows, Visual C++ is the best, but if you found that has a learning curve that you dislike, then any other IDE would have a learning curve that you do not want to overcome. That said, Code::Blocks would be your next best bet.any nice free visual C compiler like Miracle C Compiler?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
thanks Code::Blocks is excellent
If n is very large, code will run damm slow.
This is not efficient code.
Yes, though there is also a limitation in terms of the range of int.If n is very large, code will run damm slow.
This is not efficient code.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
"No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
"Have you tried turning it off and on again?" - The IT Crowd
To work nothing. It is fine
EDIT: Just for practice, try writing the code using fewer lines. Then try to write the algorithm using more variables instead of recursion