30 Mar
2003
30 Mar
'03
14:54
How would I set HelloClass::str to something within the class definion, or constructor? IOW, how do I initialize member variables of user defined types to default values?
Just write your constructor like this: HelloClass::HelloClass() { str = "Default string"; } Or do I misunderstand the question? -- "...our desktop is falling behind stability-wise and feature wise to KDE ...when I went to Mexico in December to the facility where we launched gnome, they had all switched to KDE3." - Miguel de Icaza, March 2003