delorie.com/archives/browse.cgi | search |
From: | G DOT DegliEsposti AT ads DOT it |
To: | djgpp AT delorie DOT com |
Message-ID: | <C1256598.003C3F0B.00@vega.ads.it> |
Date: | Mon, 26 Jan 1998 11:58:59 +0100 |
Subject: | Re: Very simple: What am I doing wrong? |
Mime-Version: | 1.0 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |