Posted by Frank Hale on 1999-10-16
> int x, y;
> int iCurrent;
> for (x = 0; x >= 100; x ++)
> {
> for (y = 0; y >= 100; y ++ )
> {
> ...
>
> If i run the complete program, it jumps over the
> code in the
> for-loops.
> Can anybody tell me why this is happening?
Your saying in your for loops
(x/y equals zero; loop while x/y is greater than or
equal to zero; increment x/y)
Since x and y both equal zero then how can they ever
be greater than or equal to 100? This is why the loops
are getting skipped.
Try changing the >= to <=
=====
From: Frank Hale
ICQ: 7205161
Webpage: http://jade.netpedia.net/sapphire
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
Previous post | Next post | Timeline | Home