c

This is a discussion on c within the C Programming forums, part of the General Programming Boards category; help me with structures...

  1. #1
    shah
    Guest

    Exclamation c

    help me with structures

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    Can you be more specific?

    Have you tried using them, and become confused?

    You could post what you've tried, so we can perhaps explain the specific point.

    No one will explain it all, that's what books / online tutorials / classes are for.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Unregistered
    Guest
    A structure is a suitcase that stores multiple types of data, or, multiple of the same type (though you could just use an array for this).

    You need:

    1) the keyword 'struct'
    ... optional, the name of the struct
    2) an opening braces '{'
    ... optional members
    3) one closing braces '}'
    4) a semicolon ';'

    struct {
    };

    And there you're done.

    Quzah.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    Are you ever going to register Quzah?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    > struct {
    > };

    Quzah, Quzah, Quzah. Must you go with the most complex in the beginning to scare away the newcomer? I mean, when I saw this structure, I started second-guessing my knowledge on structs. It's scary!

    Just kidding. This is the basic structure of...well...a structure. Like Quzah said, you fill it with data members. You can then go further and create linked lists, double linked lists, and trees all using pointers.

    --Garfield

  6. #6
    Unregistered
    Guest
    > Are you ever going to register Quzah?

    I did register a long long time ago. I just don't know my password, and I don't remember what email address I used, so I can't have it emailed to me.

    Quzah.

  7. #7
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,767
    > I did register a long long time ago.
    You mean on the old ultraboard?

    The logins/passwords on this board start afresh - the names/passwords on the old boards were not carried over.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  8. #8
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    > The logins/passwords on this board start afresh - the names/passwords on the old boards were not carried over.

    Yeh, there you go. Just register again. We need you one the cboard force. Not on the unregistered side of the spectrum. Join the elite group (that includes Me, Salem, Govtcheez, and many, many more).

  9. #9
    Unregistered
    Guest
    I can't. The php won't load here at work. I'll have to do it at home.

    Quzah.

  10. #10
    Ian
    Ian is offline
    Registered User
    Join Date
    Oct 2001
    Posts
    21

    say who?

    PHP is server-side is it not? So shouldn't PHP get run anywhere you connect to it from?



    Tell me if I'm wrong...



    Ian (:

  11. #11
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    In theory it should. However, only one of the two computers on my desk (different networks) will run it. The other doesn't ever finish loading it. (The more powerful of the two machines, oddly enough.)

    Quzah.

  12. #12
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Yes, quzah registered! Now we're cookin'.

  13. #13
    Ian
    Ian is offline
    Registered User
    Join Date
    Oct 2001
    Posts
    21

    haha

    hehe, that's pretty odd, perhaps "they don't make 'em like they used to"?

    j/k
    thanks for explaining,

    (: Ian

  14. #14
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Make what like they used to? The server? I never really got into all that networking stuff. I have no need for it.

  15. #15
    Ian
    Ian is offline
    Registered User
    Join Date
    Oct 2001
    Posts
    21

    um..

    I actually meant his faster computer, as it happened to be the one that would not finish loading the page, whereas the slower of the two computers did load it up properly.

    Networking is awesome.

    (: Ian

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21