Welcome. Please log in or register.

Amazing calculator compilation problem
Trae_1kid Posted: 31 Aug 2019, 10:57 AM

Posts: 1
Joined: 31-August 19
Well I tried compiled it in code blocks it runs good showing all the buttons it even takes keyboard inputs but it doesn't calculate it gives me and and answer of -0 when I press =, can you assist me an answer of -0

(User posted image)

Last edit by Trae_1kid at 31 Aug 2019, 10:59 AM

mit Posted: 31 Aug 2019, 11:07 AM
yeah whatever

Posts: 541
Joined: 4-May 16
Wow, kudos for trying.

I've never used code blocks so I've no idea what it could be. The calculator was written for lcc which is about 20 years old at this point, god knows what's going on here.

Have a look at the debugging abilities of code blocks to see if you can figure out what's going on.

Edit: According to wikipedia you can select LCC as the compiler used by code blocks, I assume it's using GCC by default.

Last edit by mit at 31 Aug 2019, 11:13 AM


Sign in to post a reply.