From: G DOT DegliEsposti AT ads DOT it To: djgpp AT delorie DOT com Message-ID: Date: Mon, 26 Jan 1998 11:58:59 +0100 Subject: Re: Very simple: What am I doing wrong? Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Precedence: bulk At 08:42 1/23/1998 +0000, Mike Coulson wrote: >The following code produces errors on my compiler (DJGPP). >Is this code OK? I have no idea, and am only a beginner. >I have heard that C++ allows functions to be put into structures. I have >tried to do this, and get errors. > >struct a ( > int vara; > void addone() { > vara++; > } > ); Use curly brackets: struct a { ... }; ciao Giacomo