Simple GUI Calculator using C

Поділитися
Вставка
  • Опубліковано 20 сер 2024

КОМЕНТАРІ • 36

  • @wdm_frwrd
    @wdm_frwrd Рік тому +56

    I always loved a simple test: 12345679 * 9 = 111111111. In your case: 12345679 * 9 = 111111112. Checked three times. Solution: using double instead of float 😃

    • @LascelleMckenzie
      @LascelleMckenzie  Рік тому +10

      🙏🏽😄 thanks for highlighting that.Appreciate it 👍

    • @segsfault
      @segsfault Рік тому +2

      I'm not quite sure what floats have to do with integer arithmetic.

    • @rotemlv
      @rotemlv Рік тому +6

      @@segsfault I guess it's cause single-precision can only handle 24 bits properly, whether before or after the dot.
      ( ran it in C and got a print like this:
      16777216 + 1 = dbl= 16777217, flt= 16777216
      )

  • @prasdud
    @prasdud Рік тому +11

    coding on kali, respect

  • @ClooverDev
    @ClooverDev Рік тому +7

    the most simple C code:

  • @manoharsagunthalla9215
    @manoharsagunthalla9215 Рік тому +2

    Display is too small not able to see anything. You must explain it without that how do we understand?

  • @myatminhtet7533
    @myatminhtet7533 Рік тому +1

    Keep going 🎉🎉🎉

  • @squalito217
    @squalito217 Рік тому +2

    Dude using kali linux, respect haha

  • @keshavbhatta5401
    @keshavbhatta5401 Рік тому +16

    Can you please tell me how did you learn gtk. I have learned all the basics of c and now i want to learn gtk to make some simple things.

    • @LascelleMckenzie
      @LascelleMckenzie  Рік тому +10

      The best bet is to follow the documentations available on the internet as gtk is fairly easy but i will make future videos relating to gtk

    • @bazarbekovic
      @bazarbekovic Рік тому +2

      i read gtk documentation in one day and it was enough... it was for different language than C but still

    • @ismaelsierra3757
      @ismaelsierra3757 Рік тому

      @@bazarbekovic yea not great …

  • @to_become_a_superhero
    @to_become_a_superhero Місяць тому

    Bro how do you learn so much gtk, I don't know how I can learn properly and make gui application thanks for help

  • @AlexGarcia-cr5st
    @AlexGarcia-cr5st Рік тому +2

    nice Kali, what's your hardware?

  • @__gadonk__
    @__gadonk__ Рік тому +4

    is there any reason, you're using Kali for this? or do you just like the UI

    • @LascelleMckenzie
      @LascelleMckenzie  Рік тому +6

      Both … I also use kali linux for things other than development

  • @aaliyahricketts57
    @aaliyahricketts57 3 місяці тому

    Respect for the kali linux bro 😮.. most people can’t do this

  • @PetiMaster605
    @PetiMaster605 Рік тому +4

    Yo bro does this work with other compulers

    • @LascelleMckenzie
      @LascelleMckenzie  Рік тому +2

      Yes just ensure to have gtk installed on your device

  • @samarth.sshetty7896
    @samarth.sshetty7896 Рік тому +1

    bro how can i run this program in VISUAL STUDIO

    • @samarth.sshetty7896
      @samarth.sshetty7896 Рік тому

      😅

    • @Scotty-vs4lf
      @Scotty-vs4lf Рік тому

      i dont think you can. afaik windows doesnt have gtk
      i looked it up ig it does

    • @craftrumzen2393
      @craftrumzen2393 Рік тому

      @@Scotty-vs4lf with msys you can get gtk, but i still can't add "g_signal_connect", VSCode shows an error

    • @Scotty-vs4lf
      @Scotty-vs4lf Рік тому

      @@craftrumzen2393 im not much of a windows person but i think u need to compile it inside msys to use gtk

    • @craftrumzen2393
      @craftrumzen2393 Рік тому

      @@Scotty-vs4lf good idea, I also could use wsl Ubuntu or Kali to straight compile

  • @sen8078
    @sen8078 Місяць тому

    am i deaf or does this have no sound

  • @myatminhtet7533
    @myatminhtet7533 Рік тому

    Plz add song in your video😅

  • @shahzeb01
    @shahzeb01 2 роки тому +1

    Bro Can I get this Code for free prewritten

  • @superduper6090
    @superduper6090 Рік тому

    ew kali linux

  • @sgt.boris4713
    @sgt.boris4713 Рік тому +1

    4-2 = 2000 what?!

    • @LascelleMckenzie
      @LascelleMckenzie  Рік тому +3

      It clearly shows 2.000 … I left the result to have 3 decimal places after the point … however that can be changed in the program if you want to

    • @Scotty-vs4lf
      @Scotty-vs4lf Рік тому

      its a decimal point...
      as in 2.000 is 2 + 0/10 + 0/100 + 0/1000, which is correct