3 Jun
2010
3 Jun
'10
16:05
On Thursday June 3 2010, Per Jessen wrote:
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??
A haphazard approach to learning to program in C++ cannot be recommended. Find some tutorial material.
/Per Jessen, Zürich
Randall Schulz -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org