delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/08/07:00:11

From: Mark Slagell <bald_soprano AT geocities DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: what am I doing wrong.
Date: Sun, 08 Jun 1997 05:07:23 -0500
Organization: dept. of redundancy dept.
Lines: 19
Message-ID: <339A845B.2DB0@geocities.com>
References: <3399c3e5 DOT 7015538 AT nbisrv DOT nbi DOT dk>
NNTP-Posting-Host: dial20.ppp.iastate.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Kristian Dorland wrote:
> 
> I have just installed djgpp for the first time, and I canīt create c-
> programs thatīs working properly. Every time I run a program compiled
> with djgpp, there is somthing wrong with the contents of the integers
> and the floatings. An example:
> 
> main()
> 
>   {
>   int one == 1234;
>   printf("%d",one);
>   }
> 
> The output will always be 5492 and not 1234. Why? What am I doing
> wrong. It only happens on my own computer. Is there somthing wrong
> with the installation of djgpp. Please help me.

Try getting rid of one of those equals signs.  "int one = 1234"

- Raw text -


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