hi all,
? is d dffrence btween C++ structure and C++ class?
pls reply.....
hi all,
? is d dffrence btween C++ structure and C++ class?
pls reply.....
by default, members of structs have public accessibility and public inheritance, and members of classes have private accessibility and private inheritance
> ? is d
It took me far too long to figure out
? = what
is = is
d = the
Random omission of vowels in words - did you type this on a phone or something?
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.
In general, never use structures unless you are grouping together data that you know will only be public, and never has to be acsessed privately
Double Helix STL
Structures are commonly (though there is no reason for this in C++) to hold groups which have no member functions, just member variables. This is somewhat inherited from C, where it was needed.
>It took me far too long to figure out
>? = what
>is = is
>d = the
I just skipped over it and mentally inserted the appropriate words. I guess I've gotten good at compiling lazy speak.
My best code is written with the delete key.
> I just skipped over it and mentally inserted the appropriate words. I guess I've gotten good at compiling lazy speak.
I guess you've had your share of SMS-es, right?
IMHO, to make it simpler struct is an all public class. All the variables and functions (if there's any) will always be public.
ERROR: Brain not found. Please insert a new brain!
“Do nothing which is of no use.” - Miyamoto Musashi.
! 50 |)157a|\|7 7|-|0|_|9|-|75 0n 73|-| |\/|a773rOriginally Posted by Amit Chikorde
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*
Dave, you are getting so good at this, it's scary.Originally Posted by Dave_Sinkula
25/f/japan
[/disguised fat man]