Search:

Type: Posts; User: dwlu244

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    22,241

    If I just wish to create a copy of one single...

    If I just wish to create a copy of one single node (instead of a list), then would this be correct:


    tmp = get_tmp( node );

    TDnode * get_tmp( TDnode *node ) // I'm not sure of the argument?
    {...
  2. Replies
    9
    Views
    22,241

    I don't see how they're different...the original...

    I don't see how they're different...the original node and the copy.

    If it's any help, basically I wish to edit the new tmp_node without affecting the original node.
  3. Replies
    9
    Views
    22,241

    Thanks for the reply. Can you please check if...

    Thanks for the reply.

    Can you please check if the following is correct, if I wish to do what you said and what I want to do?
    (obviously I would need function protocol and everything, but just the...
  4. Replies
    9
    Views
    22,241

    How to copy nodes in linked list

    Hi,

    Say the node has data structure:


    struct tdnode {
    char *task;
    char *notes;
    TDnode *next;
    };
  5. Thread: Multiple of 3

    by dwlu244
    Replies
    3
    Views
    1,666

    I believe you use 'mod'. For example if(...

    I believe you use 'mod'.

    For example

    if( 15mod3 == 0 ) {

    I think. Not sure.

    EDIT* Actually on another post, I realise maybe instead of 'mod' it would be '%'
  6. Thread: New line in C

    by dwlu244
    Replies
    4
    Views
    28,794

    Thanks for both of the reply. But yeah, I didn't...

    Thanks for both of the reply. But yeah, I didn't mean printf, I just meant normal instructions.

    And I tried just using enter and the program worked normal. So yeah, it's all good.

    Edit* I was...
  7. Thread: New line in C

    by dwlu244
    Replies
    4
    Views
    28,794

    New line in C

    Say one line on my code is 100 characters long. The requirement is 70 charaters per line just for the sake of layout. Basically, how do I make one line of code into two lines?

    Would I just press...
Results 1 to 7 of 7