Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Problems with my addition program.

Author
Message
AndRaxius
7
Years of Service
User Offline
Joined: 16th Feb 2017
Location:
Posted: 16th Feb 2017 16:43
Hello, people!

I'm having a bit of trouble getting this addition program to work:


When running, the text flickers, and sometimes numbers will overlap. How do I fix this?

Thanks.
AndRaxius - still a piece of human garbage.
Hannibal
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 16th Feb 2017 20:20

The more usual way would be more like this...

some won't like the goto's but I am used to assembly language..long live jmp


WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 17th Feb 2017 17:25
I have absolutely no issue with the use of Goto, the vast majority here seem to be able to write spaghetti code without using it anyway. However, for such a program I would code it something like this.

Hannibal
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 17th Feb 2017 17:54
Nice, I like that one too , but they may want to retry a wrong one
WickedX
15
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 17th Feb 2017 18:30 Edited at: 17th Feb 2017 18:49
Would be simple to alter the code to do that.

AndRaxius
7
Years of Service
User Offline
Joined: 16th Feb 2017
Location:
Posted: 20th Feb 2017 21:53
Thanks, guys! This really helped me out.
AndRaxius - still a piece of human garbage.
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 22nd Feb 2017 03:54
your original code worked flawlessly for me no flicker or overlapping dependent on the compiler version possibly.
A child's dream never dies.





Hannibal
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 24th Feb 2017 14:17
It wouldn't have for long...calling a "subroutine" that had no return lol

Login to post a reply

Server time is: 2024-03-28 20:31:25
Your offset time is: 2024-03-28 20:31:25