| www.delorie.com/archives/browse.cgi | search |
| From: | "23yrold3yrold" <cbarry AT pangea DOT ca> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <39e9f547_4 AT spamkiller DOT newsfeeds DOT com> <971687834 DOT 987432 AT shelley DOT paradise DOT net DOT nz> |
| Subject: | Re: destroy_bitmap in destructor |
| Date: | Mon, 16 Oct 2000 18:27:36 -0500 |
| Lines: | 38 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2919.6600 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2919.6600 |
| NNTP-Posting-Host: | spamkiller |
| Message-ID: | <39eb8e82_2@spamkiller.newsfeeds.com> |
| X-Comments: | This message was posted through Newsfeeds.com |
| X-Comments2: | IMPORTANT: Newsfeeds.com does not condone, nor support, spam or any illegal or copyrighted postings. |
| X-Comments3: | IMPORTANT: Under NO circumstances will postings containing illegal or copyrighted material through this service be tolerated!! |
| X-Report: | Please report illegal or inappropriate use to <abuse AT newsfeeds DOT com> You may also use our online abuse reporting from: http://www.newsfeeds.com/abuseform.htm |
| X-Abuse-Info: | Please be sure to forward a copy of ALL headers, INCLUDING the body (DO NOT SEND ATTACHMENTS) |
| Organization: | Newsfeeds.com http://www.newsfeeds.com 73,000+ UNCENSORED Newsgroups. |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
"Edmund Horner" <ejrh AT paradise DOT net DOT nz> wrote in message news:971687834 DOT 987432 AT shelley DOT paradise DOT net DOT nz... > > Since this is quite a complicated struct (constructors, functions, et. al.), > would it not be better calling it a class? Since it's all public, I might as well make it a struct; there's really no difference. > What this tells me is that your struct is descended from classes x, y, and > life, and you are calling those constructors! > > Instead, I think you should have (as the first lines of your constructor): > > x = a; > y = b; > life = 0; Same thing. > I am not sure why you're trying to delete what appears to be an integer > result here... I'm still learning iterators; I discovered that was where my error was. > You don't have the compiler and library sources installed, I expect. > new2.cc is probably the part of the compiler (or library, I can't remember > which) that tells how the new and delete operators work. Code works now, but I STILL don't know what new2.cc is, or how the compiler can tell me there's a problem in a file I don't have. Chris
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |