delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/28/09:21:28

Date: Tue, 28 Jan 1997 09:13:29 -0500 (EST)
From: Nikita Proskourine <nproskou AT goucher DOT edu>
To: cbird <cbird AT byu DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: enumerated types overloading
In-Reply-To: <32ED20E2.40F3@byu.edu>
Message-ID: <Pine.SUN.3.91.970128091139.10880A-100000@rwd>
MIME-Version: 1.0

On Mon, 27 Jan 1997, cbird wrote:

> enum alpha {a, b, c, d, e, f};
> 
> in my header and when I try something like:
> 
> alpha letter = a;
> a++;
You can't increment a constant, increment your variable: letter++;

--  Nikita.

- Raw text -


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