This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Strange problem with loop

Hi.

Ive been programing for nearly five months now so I am not a noob but I cannot understand this;

for ( variable = 1 ; variable < 100 ; variable += 1 )
{
  // some code

  if ( foofar )
    continue ;
  else
    sumfunc () ;
}

<endpre>

if i continue does the variable get added?


Parents
  • "Ive been programing for nearly five months now so I am not a noob."

    I've been programming for more than 25 years, and I'm still a noob at some aspects of programming!

    It's always useful to keep a good reference manual besides you when you work. My favourite is "C: A Reference Manual" by Harbison and Steele.

    Just noticed that one of my colleagues has just nabbed mine!

Reply
  • "Ive been programing for nearly five months now so I am not a noob."

    I've been programming for more than 25 years, and I'm still a noob at some aspects of programming!

    It's always useful to keep a good reference manual besides you when you work. My favourite is "C: A Reference Manual" by Harbison and Steele.

    Just noticed that one of my colleagues has just nabbed mine!

Children