Search:

Type: Posts; User: mohanlon

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    4,868

    OK. I put back in all the code I deleted, and I'm...

    OK. I put back in all the code I deleted, and I'm working on it. I think I understand, but I'm not sure. Please take a look at the following code, and correct me if I'm wrong.


    void...
  2. Replies
    8
    Views
    4,868

    Thanks for the help. I'm still learning this...

    Thanks for the help. I'm still learning this concept, so the execution is still a little difficult for me. If I can ask, why do you need to have "prevptr" declared in struct listnode at the beginning...
  3. Replies
    8
    Views
    4,868

    Hi thanks. Sorry about that, maybe I should have...

    Hi thanks. Sorry about that, maybe I should have posted all the code in the first place.
    Here is the code that I have manipulated so far:

    #include <stdio.h>
    #include <stdlib.h>

    /*self...
  4. Replies
    8
    Views
    4,868

    Doubly linked lists

    Hi all,
    I've been having some difficulty with understanding doubly linked lists. I looked at the FAQ and the tutorial about doubly linked lists(which is very short by the way), and think I have a...
  5. Replies
    17
    Views
    4,411

    ಠ_ಠ, dwks, & zalezog, Thanks so much! I wasn't...

    ಠ_ಠ, dwks, & zalezog,

    Thanks so much! I wasn't fully aware of how scanf and getchar() stores a newline as a character in a buffer, so I misunderstood it all at first. I understand it now, and I...
  6. Replies
    17
    Views
    4,411

    I tried that too. It's the same thing happening....

    I tried that too. It's the same thing happening.


    Encode or Decode? (e/d)
    e
    Enter four digit number: 4526
    Encrypted number is: 9312
    Continue? (y/n)
    y
    Encode or Decode? (e/d)
  7. Replies
    17
    Views
    4,411

    I changed the main body of the code I wrote to...

    I changed the main body of the code I wrote to this:

    #include <stdio.h>
    #include <stdlib.h>

    void encrypt(int number1);
    void decrypt(int number2);

    int main(void)
    {
  8. Replies
    17
    Views
    4,411

    Thanks very much for the help! It's greatly...

    Thanks very much for the help! It's greatly appreciated. I put in the code you sugested, and it helped me get past the first issue I was having. Now, should I put in a similar line like ...
  9. Replies
    17
    Views
    4,411

    Trouble with assignment in C

    Hi all,

    I'm having some trouble with an assignment where I have to encrypt or decrypt a four digit integer. The encryption and decryption isn't really a problem for me, it's the section for user...
Results 1 to 9 of 9