Mail Archives: djgpp/1997/12/07/23:47:34
| From: | "Robert Lazorko" <rlazorko AT geocities DOT com>
|
| Subject: | Return Types for Constructors
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Message-ID: | <01bd0366$cfe6d140$d744e4cf@cadvision.com>
|
| NNTP-Posting-Host: | ts20ip215.cadvision.com
|
| Date: | 7 Dec 97 23:11:54 GMT
|
| Lines: | 18
|
| Organization: | CADVision Development Corporation (http://www.cadvision.com/)
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I am writing code which implements classes for C++, and yet, the compiler
gives the error
message "return type specified for constructor invalid"...
The code I have used is (I have excluded the header info):
Vector::Vector()
{
x = 0;
y = 0;
}
That's it! Please help if you can...(reply by Email if possible)
--
Robert Lazorko
Chemical Engineering Student
(rlazorko AT geocities DOT com)
- Raw text -