Putting a composite statement in the condition of a for loop

前端 未结 6 1140
一整个雨季
一整个雨季 2021-01-18 18:02

I have a contrived example to demonstrate the request for a specific functionality - I wonder if anyone has a clever trick to do this.

The following is a problem one

6条回答
  •  庸人自扰
    2021-01-18 18:38

    int numberoftimes = 4
    
    if numberoftimes > 1
    {
      for(ii=0; ii

    Either you test every time in the loop, or you test once first...

提交回复
热议问题