Mail Archives: djgpp/1998/06/14/21:30:29
From: | "Dan Goodman" <dog AT fcbob DOT demon DOT co DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | constructor/destructor
|
Date: | Mon, 15 Jun 1998 01:45:17 +0100
|
Message-ID: | <897871443.1942.0.nnrp-01.9e989aee@news.demon.co.uk>
|
NNTP-Posting-Host: | fcbob.demon.co.uk
|
Lines: | 17
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
a few months ago I wrote a program that included something like this:
vector v;
...
v.vector();
where vector is a class with a constructor that sets the x,y coords to 0,
the program worked then, but now (possibly with a newer version of djgpp) it
gives me errors (wont compile). Is using a constructor function in this way
not legal? Is there any other way of using this function or should I just
make a copy of the function with another name (seems like a bit dodgy that
to me)?
Thanks in advance,
Dan
- Raw text -