delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/19/15:34:06

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: bool problem
Date: 19 Oct 2001 19:22:21 GMT
Organization: Cornell University
Lines: 31
Sender: asu1 AT cornell DOT invalid (on 128.253.251.163)
Message-ID: <Xns913F9C6092228ASINANUNUR@132.236.56.8>
References: <9qprh4$bqk$1 AT cyan DOT nl DOT gxn DOT net>
NNTP-Posting-Host: 128.253.251.163
X-Trace: news01.cit.cornell.edu 1003519341 19859 128.253.251.163 (19 Oct 2001 19:22:21 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 19 Oct 2001 19:22:21 GMT
User-Agent: Xnews/4.06.22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Bart van den Burg" <bart AT bart99 DOT tmfweb DOT nl> wrote in 
news:9qprh4$bqk$1 AT cyan DOT nl DOT gxn DOT net:

> how comes the next following function always echoes "48" and in
> -----------
>  if (markMine && minesA[x-1][y-1] == 2) {
>   drawCircle(x * 5 - 1, y * 5 - 1, 1, 4);
>   mines--;
>  }
>  else if (!markMine)
>   printNumber(x - 1, y - 1);
> -----------
> markMine always seems to be false??

Who knows when you have:

>  }
>  char buffer[0];
>  sprintf(buffer, "%d", char(x));

in your code.

Your posts are becoming exceedingly off-topic. you might want to try 
alt.comp.lang.learn.c-c++. and take a look at the C faq (because, even 
though you are using C++ features, most of your code is poorly written C.)

Sinan.
-- 
--------------------------------
A. Sinan Unur
http://www.unur.com/

- Raw text -


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