Search:

Type: Posts; User: mist4lyf

Search: Search took 0.07 seconds.

  1. Replies
    17
    Views
    3,167

    Re: encrypting and decrypting a string

    Yes I have put the input into a 2-D array but to go about printing the elements of the array different to how it was entered into the array, would I be using some sort of loop?
  2. Replies
    17
    Views
    3,167

    Re: encrypting and decrypting a string

    The point of each method is changing the inputted string so that the string is either encrypted or decrypted. If I were inside the encrypt method and I read in abcd, how would I make the output be...
  3. Replies
    17
    Views
    3,167

    Re: encrypting and decrypting a string

    Okay so the user would type -encrypt and -decrypt and that would be determined as args[0] and whatever the user types as args[1] is sent to that particular method.
    Examples I need to test are...
  4. Replies
    17
    Views
    3,167

    Re: Problems with my FOR loop

    ..
  5. Replies
    17
    Views
    3,167

    Re: encrypting and decrypting a string

    a is [0][0], b is [0][1], c is [1][0], d is [1][1]

    and I wanted to make it so it becomes:

    a is [0][0], c is [0][1], b is [1][0], d is [1][1]

    I guess by changing the position of the letters...
  6. Replies
    17
    Views
    3,167

    Re: Problems with my FOR loop

    Okay, Ill look into it and see how I go.
  7. Replies
    17
    Views
    3,167

    Problems with my FOR loop

    Hi guys,

    I have for example a 2-D array with a=[0,0] b=[0,1], c=[1,0] and d=[1,1]
    a b
    c d

    So for my array I am reading in the letters from left to right, row by row and now I wanted to...
  8. Replies
    17
    Views
    3,167

    Re: encrypting and decrypting a string

    I know how to determine the amounts of rows and columns now.

    What I mean by shifting the elements, is so that if the string was decrypted"abcd"
    a b
    c d
    We read the elements left to right,...
  9. Replies
    17
    Views
    3,167

    encrypting and decrypting a string

    -Encrypt a string of text using a Caesar Square: the string should be written along the rows of a square that is as small as possible, and then the encrypted string is read down the columns like so: ...
Results 1 to 9 of 9