CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Posts
    61

    Help need for the alternate function of for loop

    I am developing a project which interface audio and video into it.
    Here in my code it contain many number of for loops. I want to change the for loops with some other alternate function, can anyone plz help. want to optimise my code.. plz help with some optimization technique or any tools there to do

    Is there any alternate function for for loop

  2. #2
    Join Date
    Jul 2005
    Location
    E: 120°.6, N: 31°.3′
    Posts
    795

    Re: Help need for the alternate function of for loop

    You said you want to change the for loops with some other alternate function, but we do not know to change the number of loops or change functions of loops ??
    Little by little one goes far
    Keep moving.......!
    Nothing is impossible !

  3. #3
    Join Date
    Jun 2009
    Posts
    61

    Re: Help need for the alternate function of for loop

    Sorry 4 my incomplete post.
    Her eit have 2 levels of nesting.. its a 2D array... matrix addition like code only

  4. #4
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Help need for the alternate function of for loop

    Is there any alternate function for for loop
    Yes. A do/while. But that doesn't change anything. Optimizing code is about reducing the instructions, so using another kind of loop is still a loop and doesn't reduce the amount of instructions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured