Mail Archives: djgpp/1998/11/15/10:30:17
| From: | "LSC" <liausc AT pl DOT jaring DOT my>
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Will there be an out of memory error?
|
| Date: | 15 Nov 1998 06:49:38 GMT
|
| Organization: | Unconfigured
|
| Lines: | 28
|
| Message-ID: | <01be106c$56dd2b00$LocalHost@a>
|
| NNTP-Posting-Host: | j7.jrc22.jaring.my
|
| X-Newsreader: | Microsoft Internet News 4.70.1155
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
| Reply-To: | djgpp AT delorie DOT com
|
Consider these two method.
(I)method number one
--------------------
int check_spaceship_collide();
int main(){
...
if (check_spaceship_collide()==1) then life--;
...
}
(II)method number two
---------------------
int check_spaceship_collide_return;
void check_spaceshit_collide();
int main(){
...
check_space_ship_collide();
if (check_spaceship_collide_return==1) then life--;
...
}
I prefer method number one but I've programmed a floodfill program in
MS-Qbasic and I found that if I use method number one, then I get an out of
memory error, but method number two does not return an out of memory error.
So I want to know whether djgpp also return an out of memory error for
method number one.
- Raw text -