Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.08 seconds.

  1. Re: 2d (4x4) array insdie a 1d array. (Block cipher)

    I have a suggestion which can make things easier if you ever do a multi-dimensional array on a larger scale. Purely for the reason of making things more readable and easier to debug, I have gotten...
  2. Re: 2d (4x4) array insdie a 1d array. (Block cipher)

    //Sentence
    String sentence = "The quick brown fox jumps over the lazy dog";

    //Declare variable for number of columns
    int numColumns;

    /* Mod the number of characters in the...
  3. Re: 2d (4x4) array insdie a 1d array. (Block cipher)

    What you need to do is find out what the next number divisible by 16 from the number of characters. This can be done with the if statement I had above, were you use mod ( % ) to determine if it...
  4. Re: 2d (4x4) array insdie a 1d array. (Block cipher)

    Alternatively, you can create a large 2d array, and then a second array that contains reference numbers to the start of each "block".

    For example:

    //Sentence
    String sentence = "The quick...
Results 1 to 4 of 4