www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/27/19:46:44

From: cbird <cbird AT byu DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: enumerated types overloading
Date: Mon, 27 Jan 1997 14:40:50 -0700
Organization: Brigham Young University
Lines: 19
Message-ID: <32ED20E2.40F3@byu.edu>
NNTP-Posting-Host: byu-0718.ln.byu.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm trying to compile some stuff I wrote using BC4.5 using DJGPP and I'm
running into problems with enumerated types and the ++ and --
operators.  basically I've got something like this

enum alpha {a, b, c, d, e, f};

in my header and when I try something like:

alpha letter = a;
a++;

I get an error saying no postincrement operator defined or something
along those lines.  I'm somewhat familiar with C++, but I've never
overloaded any operators because with borland it automatically
overloaded the enumerated types.  Any help with this would be greatly
appreciated.  thanx!

Christian Bird
cbird AT byu DOT edu

- Raw text -


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