?
  1. YES

    63 vote(s)
    76.8%
  2. NO

    7 vote(s)
    8.5%
  3. What's a GUI ...

    12 vote(s)
    14.6%
  1. Deleted_444986

    OP Deleted_444986 Newbie

    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 Feb 16, 2019
    pOOB73, lordelan, RiPPERD and 3 others like this.
  2. EliseZeroTwo

    EliseZeroTwo Member
    Newcomer

    Joined:
    Sep 14, 2018
    Messages:
    47
    Country:
    United Kingdom
    10/10 tool, nice
     
    Last edited by EliseZeroTwo, Feb 9, 2019
    tomGER likes this.
  3. Dontwait00

    Dontwait00 Unknown
    Member

    Joined:
    Sep 3, 2017
    Messages:
    272
    Country:
    Italy
    Finally, thomleg! Something you did, after +1 year, without copy-pasting! :D
     
  4. Deleted_444986

    OP Deleted_444986 Newbie

    Release of source and nro available !
     
    lordelan likes this.
  5. tomGER

    tomGER GBAtemp Fan
    Member

    Joined:
    Feb 6, 2017
    Messages:
    348
    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!
     
    Aldoria, sirAnger, lordelan and 5 others like this.
  6. Karones

    Karones Member
    Newcomer

    Joined:
    Dec 31, 2018
    Messages:
    28
    Country:
    Brazil
    Finally! The ultimate reason to get homebrew on the switch!
     
    Aldoria likes this.
  7. m00k00

    m00k00 Advanced Member
    Newcomer

    Joined:
    Sep 16, 2015
    Messages:
    80
    Country:
    Gambia, The
    Awesome, this is pure Gold, thank you thomleg50!
     
    Deleted_444986 likes this.
  8. Csmrcc

    Csmrcc GBAtemp Fan
    Member

    Joined:
    Sep 13, 2018
    Messages:
    405
    Country:
    Spain
    thanks man, nice to see this kind of things
     
    Deleted_444986 likes this.
  9. PatrickD85

    PatrickD85 GBAtemp Advanced Fan
    Member

    Joined:
    Jul 4, 2012
    Messages:
    714
    Country:
    Netherlands
    Well ... who needs a calculator when you have a Nintendo Switch :P
     
  10. SuchMemeManySkill

    Newcomer

    Joined:
    Oct 7, 2018
    Messages:
    12
    Country:
    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 irrelevant foxcoon
    Member

    Joined:
    Aug 22, 2015
    Messages:
    1,016
    Country:
    Canada
    how many fuses does this burn
     
  12. Sora Takihawa

    Sora Takihawa Planeptunes Male CPU
    Member

    Joined:
    Oct 11, 2015
    Messages:
    2,893
    Country:
    Germany
    my switch bricked .......couldnt handle 5+5
     
    Mnecraft368 and Csmrcc like this.
  13. ReclaimerShawn

    ReclaimerShawn GBAtemp Regular
    Member

    Joined:
    Dec 17, 2018
    Messages:
    130
    Country:
    United States
    ALL. OF. THEM.
     
    98otiss and Mnecraft368 like this.
  14. Silent_Gunner

    Silent_Gunner Lost Wanderer Who Sees No Evil
    Member

    Joined:
    Feb 16, 2017
    Messages:
    1,276
    Country:
    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 Im using Parental Controls. Change my Mind!
    Member

    Joined:
    Nov 13, 2018
    Messages:
    834
    Country:
    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
  16. Satellizer

    Satellizer Member
    Newcomer

    Joined:
    Feb 10, 2019
    Messages:
    21
    Country:
    Australia
    Awesome work mate, I would Love to see a Texas Instruments emulator like the PSP had.
     
  17. spx

    spx Member
    Newcomer

    Joined:
    Nov 1, 2018
    Messages:
    19
    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!

    — 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

    Newcomer

    Joined:
    May 25, 2018
    Messages:
    48
    Country:
    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

    Joined:
    Nov 1, 2018
    Messages:
    19
    Country:
    Romania
    Imagine if all the escape codes worked in libnx
     
    Sumandora likes this.
  20. filfat

    filfat Musician, Developer & Entrepreneur
    Member

    Joined:
    Nov 24, 2012
    Messages:
    1,260
    @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
     
    JoeBloggs777, lordelan, ry755 and 4 others like this.
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Mathematics, Calculator, Switch