CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: vivienneanthony

Search: Search took 0.16 seconds.

  1. Re: Converting JAVA for loop to C++ for loop

    This is the output from iteration 1-5. 7 is the max.

    Iteration 1
    33295

    Iteration 2
    33297

    Iteration 3
    33299
  2. Re: Converting JAVA for loop to C++ for loop

    The noise isn't created correctly and it seems to be not shifting like it's jiggled.

    Problems as also mentioned by the original author when my conversion code.




    A image of the output is...
  3. Re: Converting JAVA for loop to C++ for loop

    Current not working full code.

    This is the code so far I converted to C++ (Olsen 2D)
    http://pastebin.com/qbgBL0Hq

    This is the image produce
    http://imgur.com/i6Lbr1P

    Original source code...
  4. Re: Converting JAVA for loop to C++ for loop

    It should. I changed it. It was that code. I think I changed it to try to find out whats wrong with the code.
  5. Re: Converting JAVA for loop to C++ for loop

    Hmmm. Actually I made it one dimensional ...,....,... thats why i have j+(k*m)


    The old code


    http://pastebin.com/gh6P5zf3

    My code is. I know its missing the memory deletion code.
  6. Re: Converting JAVA for loop to C++ for loop

    The outer loop is controlled by j < m and m=cwidth;

    Thats what you mean?
  7. Re: Converting JAVA for loop to C++ for loop

    I can give the full code if needed.
  8. Converting JAVA for loop to C++ for loop

    Hello

    Two questions.

    The second line m=field.length. What is the actual length?
    The line n=field[j].length what is the second value?

    I'm trying to convert some java code to c++.
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured