Search Results

Showing results 1 to 2 of 2
Search took 0.02 seconds.
Search: Posts Made By: DevC++4.9.9.2 ; Forum: C++ and child forums
Forum: C++ Apr 14th, 2008
Replies: 12
Views: 934
Posted By DevC++4.9.9.2
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: 934
Posted By DevC++4.9.9.2
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]...
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC