Forum: C++ Apr 14th, 2008 |
| Replies: 12 Views: 932 It is actualy better to write this as one if statement, it saves time for both you and the compiler. btw not to be mean, neither of the comments made help him with the infinite loop error |
Forum: C++ Apr 14th, 2008 |
| Replies: 12 Views: 932 You made 2 simple mistakes....
•In the for loop, num1 will always = num1
• and your while loop will always be true because num 1 and num 2 never change... here is a fixed version
[code]... |