hi all,
? is d dffrence btween C++ structure and C++ class?
pls reply.....
Printable View
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?
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
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.
> 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? :D
IMHO, to make it simpler struct is an all public class. All the variables and functions (if there's any) will always be public.
! 50 |)157a|\|7 7|-|0|_|9|-|75 0n 73|-| |\/|a773rQuote:
Originally Posted by Amit Chikorde
Dave, you are getting so good at this, it's scary.Quote:
Originally Posted by Dave_Sinkula
25/f/japan
[/disguised fat man]