RELEASE Calculator-NX - Mathematics on your Switch !

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by Thomhack, Feb 9, 2019.

?
  1. YES

    48 vote(s)
    75.0%
  2. NO

    5 vote(s)
    7.8%
  3. What's a GUI ...

    11 vote(s)
    17.2%
  1. Thomhack
    OP

    Thomhack GBAtemp Regular

    Member
    5
    Mar 25, 2018
    France
    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 :
    http://github.com/thomleg50/Calculator-NX/releases/

    Sources :
    http://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 Thomhack, Feb 16, 2019 at 12:37 PM
    lordelan, RiPPERD, Csmrcc and 2 others like this.
  2. EliseZeroTwo

    EliseZeroTwo Member

    Newcomer
    3
    Sep 14, 2018
    United Kingdom
    10/10 tool, nice
     
    Last edited by EliseZeroTwo, Feb 9, 2019
    tomGER likes this.
  3. Dontwait00

    Dontwait00 Unknown

    Member
    4
    Sep 3, 2017
    Italy
    Finally, thomleg! Something you did, after +1 year, without copy-pasting! :D
     
    Mnecraft368, XorTroll and Thomhack like this.
  4. Thomhack
    OP

    Thomhack GBAtemp Regular

    Member
    5
    Mar 25, 2018
    France
    Release of source and nro available !
     
    lordelan likes this.
  5. tomGER

    tomGER GBAtemp Fan

    Member
    6
    Feb 6, 2017
    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!
     
  6. Karones

    Karones Member

    Newcomer
    1
    Dec 31, 2018
    Brazil
    Finally! The ultimate reason to get homebrew on the switch!
     
  7. m00k00

    m00k00 Advanced Member

    Newcomer
    2
    Sep 16, 2015
    Gambia, The
    Awesome, this is pure Gold, thank you thomleg50!
     
    Thomhack likes this.
  8. Csmrcc

    Csmrcc GBAtemp Regular

    Member
    2
    Sep 13, 2018
    Spain
    thanks man, nice to see this kind of things
     
    Thomhack likes this.
  9. PatrickD85

    PatrickD85 GBAtemp Advanced Fan

    Member
    5
    Jul 4, 2012
    Netherlands
    in front of a screen...
    Well ... who needs a calculator when you have a Nintendo Switch :P
     
  10. SuchMemeManySkill

    SuchMemeManySkill Newbie

    Newcomer
    2
    Oct 7, 2018
    Netherlands
    this seems like a pretty big step for mankind. lets keep our standards low and say we can mind-control people with hacked switches next.
     
    ikki_nico and Mnecraft368 like this.
  11. 98otiss

    98otiss Phantom Thief

    Member
    5
    Aug 22, 2015
    Canada
    Metaverse
    how many fuses does this burn
     
  12. Sora Takihawa

    Sora Takihawa Planeptunes Male CPU

    Member
    6
    Oct 11, 2015
    Germany
    Planeptune
    my switch bricked .......couldnt handle 5+5
     
    Mnecraft368 and Csmrcc like this.
  13. ReclaimerShawn

    ReclaimerShawn Member

    Newcomer
    1
    Dec 17, 2018
    United States
    ALL. OF. THEM.
     
    98otiss and Mnecraft368 like this.
  14. Silent_Gunner

    Silent_Gunner GBAtemp Regular

    Member
    3
    Feb 16, 2017
    United States
    All of my chances of figuring out why OpenBOR is glitchy with the two games I gave a shot at it with my necropost earlier. But, yeah, a calculator for the Switch!
     
    Mnecraft368 likes this.
  15. Sumandora

    Sumandora GBAtemp Regular

    Member
    2
    Nov 13, 2018
    Germany
    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 Sumandora, Feb 10, 2019 at 9:37 AM
  16. Satellizer

    Satellizer Newbie

    Newcomer
    1
    Sunday
    Australia
    Awesome work mate, I would Love to see a Texas Instruments emulator like the PSP had.
     
  17. spx

    spx Member

    Newcomer
    2
    Nov 1, 2018
    Romania
    Bucharest, 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!

    — Posts automatically merged - Please don't double post! —

    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!!
     
    Mnecraft368 likes this.
  18. Admiral-Purple

    Admiral-Purple Member

    Newcomer
    3
    May 25, 2018
    United States
    Dude why is there like a 3 page story at the end of your source code? Lol
     
    EliseZeroTwo likes this.
  19. spx

    spx Member

    Newcomer
    2
    Nov 1, 2018
    Romania
    Bucharest, Romania
    Imagine if all the escape codes worked in libnx
     
    Sumandora likes this.
  20. filfat

    filfat Musician, Developer & Entrepreneur

    Member
    8
    GBAtemp Patron
    filfat is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Nov 24, 2012
    @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,
    http://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
     
    lordelan, ry755, JJTapia19 and 3 others like this.
Loading...