[C #] loop nested loop operation cycle does not respond how do

Disclaimer: This blog seriousness nonsense, the article content can not reference. This article is a blogger original article, shall not be reproduced without the bloggers allowed. Pictures are resources for learning to share use for reference purposes only, not for commercial behavior of the blog used. Communicators conceited. If this blog article written infringe your rights, please reach out to leave a message, we will promptly remove content. https://blog.csdn.net/BuladeMian/article/details/90754901

 

Circulation loop is executed after no response, how do

...

for(int i =0;k<kMax;i++)
{
    for(int j =0;j<jMax;j++)
    {
        for(int k =0;k<kMax;k++)
        {
        ...
        }
    }
}
...

 

FOR loop is broken down into a number on the line

...

for(int i =0;k<kMax;i++)
{
...
}

for(int j =0;j<jMax;j++)
{
...
}
for(int k =0;k<kMax;k++)
{
...
}
...

 

Try not to use the cycle several times in the update function, such function. Excessive operation will not respond, can not perform the function.

Create a new function doSomething, the doSomething function references.

...
update()
{

...
doSomthing();
...
}


public void doSomething()
{
...
}

 

 

 

 

Guess you like

Origin blog.csdn.net/BuladeMian/article/details/90754901