Homebrew DEAD Calculator-NX - Mathematics on your Switch !

  • Thread starter Deleted_444986
  • Start date
  • Views 10,517
  • Replies 49
  • Likes 8

Do you want a GUI ?

  • YES

    Votes: 72 77.4%
  • NO

    Votes: 7 7.5%
  • What's a GUI ...

    Votes: 14 15.1%

  • Total voters
    93
D

Deleted_444986

Guest
OP
Calculator-NX is the result of my lesson of "C".
It can actually do "+", "-", "x"," ÷ " basics operation.
I'm actually working on a touch GUI for it.
Is it properly working all times I tried it.

If you have idea to improve it say in comments down.

Planned features :
- Multi-languages

Releases :
https://github.com/thomleg50/Calculator-NX/releases/

Sources :
https://github.com/thomleg50/Calculator-NX

Credits

- @EliseZeroTwo For helping me fix my error ! Thanks
- @spx For cleaning code


Thanks you and have a good day !
 
Last edited by ,

tomGER

Well-Known Member
Member
Joined
Feb 6, 2017
Messages
347
Trophies
0
XP
1,222
Country
Germany
Once again thomleg giving us what everyone wanted - I always wondered how to calculate numbers!

And him breaking every formatting law known to man in the source code is a really well done political statement against the oppression and censorship in full support of anarchy.

Thank you Thomleg, very cool!
 
D

Deleted User

Guest
OP
cool, but i think thats a silly idea because your Code is completly trash i could help you when you enter
printf(CONSOLE_ESC(Number;NumberAndH)"TEXT"); Then it overwrite it so u dont need to clear the screen and your code is little bit cleaner.
for example: printf(CONSOLE_ESC(1;1H)"Im using that!");
would print Im using that! in the corner. but think that you only overwrite so if you print Hello 123 and then overwrite it with Hello then will the 123 be still there so do that printf(CONSOLE_ESC(1;1H)"Hello 123"); and then to overwrite printf(CONSOLE_ESC(1;1H)"Hello [And spam some spacebar in this]"); like that printf(CONSOLE_ESC(1;1H)"Hello . . . . . . . . . . . . . . . . ")
Hope i can help you. ^^

my own calculator, look at the Code, it will help you, im sure: http://bit.ly/2I4j8wc
 
Last edited by ,

spx

Member
Newcomer
Joined
Nov 1, 2018
Messages
19
Trophies
0
Age
23
Location
Bucharest, Romania
XP
197
Country
Romania
Damn thomleg50, your C lessons really boosted your intellectual abilities past what we knew was possible.. @Volthax should talk to GaryOPA about recruiting you in TX! Cheers!

--------------------- MERGED ---------------------------

10/10 tool, nice
Shut up, you attention seeker! How dare you ask for him to credit you!? You're using this kind gentleman to promote your stupid name! You should be ashamed of yourself!!
 

Admiral-Purple

Well-Known Member
Newcomer
Joined
May 25, 2018
Messages
48
Trophies
0
Age
29
XP
408
Country
United States
cool, but i think thats a silly idea because your Code is completly trash i could help you when you enter
printf(CONSOLE_ESC(Number;NumberAndH)"TEXT"); Then it overwrite it so u dont need to clear the screen and your code is little bit cleaner.
for example: printf(CONSOLE_ESC(1;1H)"Im using that!");
would print Im using that! in the corner. but think that you only overwrite so if you print Hello 123 and then overwrite it with Hello then will the 123 be still there so do that printf(CONSOLE_ESC(1;1H)"Hello 123"); and then to overwrite printf(CONSOLE_ESC(1;1H)"Hello [And spam some spacebar in this]"); like that printf(CONSOLE_ESC(1;1H)"Hello . . . . . . . . . . . . . . . . ")
Hope i can help you. ^^

my own calculator, look at the Code, it will help you, im sure: http://bit.ly/2I4j8wc
Dude why is there like a 3 page story at the end of your source code? Lol
 
  • Like
Reactions: EliseZeroTwo

spx

Member
Newcomer
Joined
Nov 1, 2018
Messages
19
Trophies
0
Age
23
Location
Bucharest, Romania
XP
197
Country
Romania
cool, but i think thats a silly idea because your Code is completly trash i could help you when you enter
printf(CONSOLE_ESC(Number;NumberAndH)"TEXT"); Then it overwrite it so u dont need to clear the screen and your code is little bit cleaner.
for example: printf(CONSOLE_ESC(1;1H)"Im using that!");
would print Im using that! in the corner. but think that you only overwrite so if you print Hello 123 and then overwrite it with Hello then will the 123 be still there so do that printf(CONSOLE_ESC(1;1H)"Hello 123"); and then to overwrite printf(CONSOLE_ESC(1;1H)"Hello [And spam some spacebar in this]"); like that printf(CONSOLE_ESC(1;1H)"Hello . . . . . . . . . . . . . . . . ")
Hope i can help you. ^^

my own calculator, look at the Code, it will help you, im sure: http://bit.ly/2I4j8wc
Imagine if all the escape codes worked in libnx
 
  • Like
Reactions: Deleted User

filfat

CTO @ Nordcom Group Inc.
Member
Joined
Nov 24, 2012
Messages
1,261
Trophies
1
Location
Gothenburg, Sweden
Website
www.sweetsideofsweden.com
XP
1,749
Country
Sweden
@Thomhack don't get discouraged because people are making fun of your code,
you're a beginner; if it weren't horrible something would be very wrong.


A good rule to follow in the future is "don't repeat yourself" (or "DRY" in short),
which basically means if you write something more than two times you should probably create a function (or sometimes a macro, but that is overkill right now) instead.
For example,
https://github.com/thomleg50/Calculator-NX/blob/master/source/main.c#L11-L19 could instead be a function.

Good luck with your adventure into C!
/ F
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Sorry for accidentally bending over