[KLUG Members] ISO C++ forbids
Matt Scott
members@kalamazoolinux.org
09 Aug 2002 19:35:50 -0400
> On Wed, Aug 07, 2002 at 10:22:54PM -0400, Matt Scott wrote:
>
> > }; // Don't forget the ; here
>
> <blush> And I'm trying to learn C++, too... :)
That's part of learning. I wrote C++ for three years in school and
still do that at least one out of every 10 classes. The nice thing is
that after you do it a few times you learn to look out for it.
One way I found around it is that I always start my classes like this.
class someclass
{
};
Then I fill in the members and methods as I go. That way the last ; is
there from the very beginning and you don't have to worry about it
again.
Good luck!
Matt