help me with structures
help me with structures
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.
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.
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.
> 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
> 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.
> 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.
> 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).
I can't. The php won't load here at work. I'll have to do it at home.
Quzah.
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 (:
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.
Yes, quzah registered! Now we're cookin'.
hehe, that's pretty odd, perhaps "they don't make 'em like they used to"?
j/k
thanks for explaining,
(: Ian
Make what like they used to? The server? I never really got into all that networking stuff. I have no need for it.
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