3 Jun
2010
3 Jun
'10
17:29
Petr Baudis wrote:
On Thu, Jun 03, 2010 at 04:58:49PM +0200, Per Jessen wrote:
Petr Baudis wrote:
On Thu, Jun 03, 2010 at 04:23:59PM +0200, Per Jessen wrote:
your struct becomes a class
You can keep it a struct...
But can you have constructors for a struct?
In C++, struct is just like a class, except that the default visibility is public.
I guess I've got some reading to do - so if I declare a struct called 'jessen', I could declare a function called 'jessen' which would act as the constructor?? /Per Jessen, Zürich -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org