Search:

Type: Posts; User: dlorde

Search: Search took 0.15 seconds.

  1. Replies
    16
    Views
    2,240

    Re: Merging 2 arrays

    The code you posted compiles and runs OK on ideone.com for me - although I have to wonder why you're using such an awkward way to compile and run your code. Why not use a local IDE that actually...
  2. Replies
    16
    Views
    2,240

    Re: Merging 2 arrays

    Yes, quite! :cool:
  3. Replies
    16
    Views
    2,240

    Re: Merging 2 arrays

    If you want to loop 3 times, the end condition should be x < 3, not x < 2.

    Check that you're incrementing the correct index in your 'for' loops.

    ETA - sorry Kevin, I pre-empted you there...
Results 1 to 3 of 3