[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

SV: [CPROG] C++ spørgsmål - hvad gårgalt med minstring?



>> Det virker nu, så jeg tror ikke jeg orker at isolere fejlen.
>
>Det råd jeg fik var iøvrigt korrekt, for "class": For en "struct" virkede
>det sgu ikke!
>
>Jeg troede den _eneste_ forskel på struct og class var at struct medlemmer
>pr. default var public, men der er åbenbart andre, eller hvad???

Nope, der er ikke andre. Fra "The C++ programming language" af Bjarne
Stroustrup kap.10.2.8:

'By definition, a struct is a class in which members are by default public;
that is,

struct s { ...

is a shorthand for

class s { public: ...
'

\Jonas



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *