Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Sorry. I just realized this sentance makes no sense :) -- Ian Main


devel / comp.lang.c / Re: C := A +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-B;

SubjectAuthor
o Re: C := A +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-B;Sams Lara

1
Re: C := A +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-B;

<t4navc$2ce90$1@news.mixmin.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=21583&group=comp.lang.c#21583

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!.POSTED!not-for-mail
From: samlara...@gmail.com (Sams Lara)
Newsgroups: comp.lang.c
Subject: Re: C := A +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-B;
Date: Mon, 2 May 2022 02:01:38 +0100
Organization: Microsoft Unofficial Representative on Newsgroups
Message-ID: <t4navc$2ce90$1@news.mixmin.net>
References: <c03a1683-d280-442b-9465-38ae4e7aec4bn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 2 May 2022 01:09:00 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="48d11a3b2fa45924111005cb39b9d63a5dfc88a3";
logging-data="2504992"; mail-complaints-to="abuse@mixmin.net"
In-Reply-To: <c03a1683-d280-442b-9465-38ae4e7aec4bn@googlegroups.com>
Content-Language: en-US
 by: Sams Lara - Mon, 2 May 2022 01:01 UTC

On 02/05/2022 00:35, Skybuck Flying wrote:
> C := A +- B; // the bugged code, produces 25

It is correct because the statement is: A + (-B) = 50 -25 = 25

I haven't checked your entire code because you have fundamental
misunderstanding how basic mathematics work. If you balance out your
pluses and minuses you will find that most compilers will follow the
basic maths rule.

The left to right parsing applies when there is equal precedence: ( * /
) or ( + - ). Multiplication/Division takes priority AFTER
(brackets) followed by pluses and minuses.

Brackets, Division, Multiplication Addition Subtraction.

In future please post a more realistic example rather than posting a
statement full of {+++----******///////}. It's just plain silly because
nobody will ever encounter such things in practical situation.

Recently I have seen many time wasters here posting useless examples and
people are wasting time reading them.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor