Search:

Type: Posts; User: Pingu00

Search: Search took 0.25 seconds.

  1. Re: Doubling The Array Size And Randomizing Array Return

    You can do it that way too
  2. Re: Doubling The Array Size And Randomizing Array Return

    They are being used when we find the size of the arrays
  3. Re: Doubling The Array Size And Randomizing Array Return

    Maybe running the program will help. What happens is that the program fills in the indices A[0] = gs, A[1] = a A[2] = jj, into a new array that is the SIZE of B, and generates every possible...
  4. Re: Doubling The Array Size And Randomizing Array Return

    The input will be two arrays so something like A: [gs,a,jj] B:[fg,p,f,on] and possible combinations are [0,1,1,2], [0,0,1,2] (since there are 3 index values for A and the size of B is 4), all these...
  5. Re: Doubling The Array Size And Randomizing Array Return

    Ok, forgetting the method. How would I solve the initial problem of duplicating each value in the arrays and placing it next to it, and instead of recursively calculating all the combinations how do...
  6. Re: Doubling The Array Size And Randomizing Array Return

    This method increments values in the for loop and fills it in, what I want is for it to use the indices stored in the array, and I'm not sure exactly where to call the method
  7. Re: Doubling The Array Size And Randomizing Array Return

    getArray() is a representation of what I'm trying to achieve, it does not have anything directly to do with the program, what it does is it fills in the array two values which are the same next to...
  8. Re: Doubling The Array Size And Randomizing Array Return

    the getArray() represents what I'm trying to achieve even though it doesn't work in the main code, which is to duplicate each index value and place it next to it, which consequently means the size of...
  9. Re: Doubling The Array Size And Randomizing Array Return

    What I mean is I don't see how to use that method I have created within my code. At the moment if you run the code, it produces a list of all possible combinations of arrays, which are of sizeB and...
  10. Doubling The Array Size And Randomizing Array Return

    Hi, I've written the following code:

    Currently what happens is that two arrays are being taken in, and all possible sequential combinations of the indices of Array A are being stored as a list of...
  11. Re: Error In Printing. Perhaps a nesting problem

    Thanks, I tried this but it didn't help too much. The files were being read in correctly, but I think there may be a problem with the scoping of the second if statement as when I put in a print...
  12. Error In Printing. Perhaps a nesting problem

    Hi, I have the following code:


    Problem has been solved now
Results 1 to 12 of 12