Forum: C++ Jan 18th, 2009 |
| Replies: 1 Views: 195 The if statement is wrong. It should be:
if (pow > 1)
{
full = num * full;
return (power(num, --pow, full)); //You've already multiplied once. Don't do it again.
}
Also, your code... |
Forum: C Dec 13th, 2008 |
| Replies: 7 Views: 866 C language was developed by Dennis Ritchie, but I'm not sure if he's officially recognized as the 'Father of C language'. That said, don't post a thread as if you are at a gun-point. All those... |
Forum: C Dec 13th, 2008 |
| Replies: 3 Views: 531 After 8 posts, the community expects you to know how to use code tags. Click here (http://www.daniweb.com/forums/thread93280.html) |
Forum: C Nov 24th, 2008 |
| Replies: 5 Views: 420 This is your 14th post, and you still don't bother to use code tags. Also it was mentioned quite a lot of times in your previous thread (http://www.daniweb.com/forums/thread154910.html) that you... |
Forum: C Nov 1st, 2008 |
| Replies: 18 Views: 1,646 Code tags (http://www.daniweb.com/forums/thread93280.html) |
Forum: C Oct 18th, 2008 |
| Replies: 15 Views: 2,437 >You're wrong. getchar() does not behave in quite the way you described.
My bad. Did some research on getchar(). Seems getchar() doesn't need enter to be pressed after the input of each character.... |