Homebrew DEAD Calculator-NX - Mathematics on your Switch !

  • Thread starter Deleted_444986
  • Start date
  • Views 10,657
  • 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
  • K3Nv2 @ K3Nv2:
    I would've said show me how it rides
  • Psionic Roshambo @ Psionic Roshambo:
    I always wanted one of those Smart Cars with a Hyabusa motor in it.
  • K3Nv2 @ K3Nv2:
    I'm getting sick and tired of cheap ass baking pans now
  • BigOnYa @ BigOnYa:
    I think it be cool to have one that would fit in my pickup truck bed, then I could put down ramps n drive it off.
  • K3Nv2 @ K3Nv2:
    Used this one 5 times already impossible to clean
  • BigOnYa @ BigOnYa:
    You need the $900 copper coated ones, they are good for 10 times cooking before they are un cleanable
  • Psionic Roshambo @ Psionic Roshambo:
    Condoms are only meant to be used once Ken lol
  • K3Nv2 @ K3Nv2:
    Well damn that explains how you were born
  • BigOnYa @ BigOnYa:
    I tried Cavier for the first time today. That shit is nasty. Don't get why people like it.
  • Psionic Roshambo @ Psionic Roshambo:
    Eh it's good with Vodka and crackers
  • Psionic Roshambo @ Psionic Roshambo:
    Gotta have the whole experience
  • Psionic Roshambo @ Psionic Roshambo:
    Drink enough vodka so you can barely taste it
  • K3Nv2 @ K3Nv2:
    Depends on brand rich rich people spend like 500 a tin
  • Psionic Roshambo @ Psionic Roshambo:
    What I'm putting down is you gotta be trashed first lol
    +1
  • K3Nv2 @ K3Nv2:
    Like if psi fucked the fish the quality of the eggs will probably come out abnormal
  • BigOnYa @ BigOnYa:
    We had it spread on crackers, n I had Rum/Coke today. I like all fish and seafoods, but not that.
  • Psionic Roshambo @ Psionic Roshambo:
    Lol sorry Ken it was either the fish or your mom.... I picked the fish lol
    +1
  • K3Nv2 @ K3Nv2:
    Yeah still an abnormal egg came out
  • BigOnYa @ BigOnYa:
    Prob smelled the same anyways
    +1
  • K3Nv2 @ K3Nv2:
    I'd assume most eggs smell the same
  • Psionic Roshambo @ Psionic Roshambo:
    Lol Ken was an egg at one time!
  • Psionic Roshambo @ Psionic Roshambo:
    And a sperm....
    Psionic Roshambo @ Psionic Roshambo: And a sperm....