Search:

Type: Posts; User: mist4lyf

Search: Search took 0.39 seconds.

  1. Replies
    21
    Views
    587

    [SOLVED] Re: Encrypting a text message

    doesnt he mean a search engine such as google ?
  2. Re: Converting a 2-D char array into a string

    Oh I just wanted to make the string to be abcd if the abcd was the result of the char array. I outputted results of a char array and I wanted to remove spaces in the output. Can you use trim for that?
  3. Converting a 2-D char array into a string

    I have a char array called testArray and currently its holding for example a,b,c,d in its elements. I am trying to convert the letters in the char array into a string and theres a problem. new...
  4. Replies
    17
    Views
    2,247

    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?
  5. Replies
    17
    Views
    2,247

    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...
  6. Replies
    17
    Views
    2,247

    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...
  7. Replies
    17
    Views
    2,247

    Re: Problems with my FOR loop

    ..
  8. Replies
    17
    Views
    2,247

    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...
  9. Replies
    17
    Views
    2,247

    Re: Problems with my FOR loop

    Okay, Ill look into it and see how I go.
  10. Replies
    17
    Views
    2,247

    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...
  11. Replies
    17
    Views
    2,247

    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,...
  12. Replies
    17
    Views
    2,247

    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: ...
  13. Replies
    1
    Views
    248

    Question about what can be asked here.

    Hi guys,

    I have this "homework" I need to do and I don't quite get the logic of how to do it. I know it has something to do with changing the position of elements in a string array using string...
  14. Replies
    2
    Views
    551

    Re: Need help with understanding arrays

    Hi I tried to just make a sample code for me to understand how to change the elements to containing a different letter but it didn't quite work out. I am trying to shift 1 position down, so b to the...
  15. Replies
    2
    Views
    551

    Need help with understanding arrays

    If I had a string array such as array[1]="abcd". Is it possible to interate through the elements of that, so for example if I wanted to shift the positions to make it dabc. So far I only have come...
Results 1 to 15 of 15