delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/20/08:31:48

From: Weiqi Gao <weiqigao AT a DOT crl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: OOP with DJGPP
Date: Mon, 20 Apr 1998 07:24:59 -0500
Organization: Spectrum Healthcare Services
Lines: 17
Message-ID: <353B3E9B.3D02503D@a.crl.com>
References: <353B38BC DOT 6C688A2D AT seric DOT es>
NNTP-Posting-Host: a116011.stl1.as.crl.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

loren wrote:
> 
>     Why this:
> 
>     class MyClass {
>         int my_var;
>         MyClass();
>         ~MyClass();
>     }
> 
>     Doesn't work?

You need a semi-colon after the closing brace.

--
Weiqi Gao
weiqigao AT a DOT crl DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019