Search:

Type: Posts; User: kbrandt

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,286

    Ah, that makes sense to me! Thank you!

    Ah, that makes sense to me! Thank you!
  2. Replies
    4
    Views
    1,286

    So what is it doing then? dog = Pointer to NULL...

    So what is it doing then?
    dog = Pointer to NULL
    so dog->next is....?
  3. Replies
    4
    Views
    1,286

    Dereference a member of NULL ?

    The following code seems to work, but I don't understand why.
    The line:
    zip = &dog->next;
    Looks to me like it is de-referencing 'next' member of NULL, which doesn't make a whole lot of sense. Is...
  4. Replies
    1
    Views
    1,889

    Found it: temp_word = temp_conc->next_word;...

    Found it:


    temp_word = temp_conc->next_word;
    //should be:
    temp_word = temp_conc->next_word->next_word;

    Since the first value is never actually initialized.
  5. Replies
    1
    Views
    1,889

    Segfault with Linked List Program

    I am learning c and this program is for me to practice implementating single linked lists. I have run into a block.

    In my program I am getting a segfault in the
    printf("%s\n",...
  6. Replies
    8
    Views
    1,501

    Review of elementry program

    I have been teaching myself c. This little program parsed out numbers in a file, and prints those divisible by 3. If anyone is willing, can you point out any thing looks like it wrote it in a...
  7. Replies
    5
    Views
    7,952

    matsp - I get it now, Thank you for your help...

    matsp -

    I get it now, Thank you for your help and taking the time to help out someone just starting.

    -Kyle
  8. Replies
    5
    Views
    7,952

    So to pass the number of elements in the array,...

    So to pass the number of elements in the array, should that just be another argument to the function like this?


    void flts_from(char dept_aport[4], flight flights[], int size) {
    int counter;...
  9. Replies
    5
    Views
    7,952

    for loop and struct

    With the following, what is the proper way to counter of all the entries in a struct for the exit condition of a for loop (sizeof(flights)..? Also, if there is anything else wrong with what I am...
  10. Replies
    10
    Views
    2,694

    That works perfect, thank you everyone... But...

    That works perfect, thank you everyone... But since I am clearly just learning c, what is a member array? :-) (Familiar with perl, python, and shell -- so know what an array is...)
  11. Replies
    10
    Views
    2,694

    If I do that I get: warning: missing braces...

    If I do that I get: warning: missing braces around initializer
  12. Replies
    10
    Views
    2,694

    printf if not null with struct and typedef

    Hi All,

    With the following code, I would change my printList function to print each field only if it has been set to something? Or is this not possible and I would have to initialize every field...
Results 1 to 12 of 12