Formatting Output - fixed, showpoint, setprecision

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

КОМЕНТАРІ • 34

  • @albertlewis332
    @albertlewis332 7 років тому +36

    I wish all professors were like you. Thank you !!

  • @SB-ls7qj
    @SB-ls7qj 2 роки тому +1

    Fixed!!! Fudge that’s what was wrong! I was losing my mind!! THANK YOU 🙏 you are a lifesaver!!!❤

  • @AlaaAdile
    @AlaaAdile 5 років тому +11

    You are a life saver. after long hours of researching C++ references I couldn't get my hand around it till I watched your wonderful short video lots of love and appreciations

  • @MrStark-up6wy
    @MrStark-up6wy 6 років тому +9

    Thank you!! Very Good explanation as compared to other videos in UA-cam

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

    This video replaces about 4 pages of textbook explanation and examples that did not make the concepts perfectly clear. Nice work!

  • @HuyDao0014
    @HuyDao0014 3 роки тому +1

    My 2 hours lecture vs this 4 min video...
    ty for this simple explanation

  • @maryfrost4011
    @maryfrost4011 4 роки тому +1

    Great explanation !!!

  • @culu37
    @culu37 3 роки тому

    Life saver big fist pump after this worked. Thank you:)

  • @asamy292
    @asamy292 6 років тому +4

    Thanks a lot. And btw you sound exactly like selena gomez 😂

  • @aniketpanchal8310
    @aniketpanchal8310 3 роки тому +1

    there could be more content over formatting output though it is a nice explanation

  • @enkhjinganzorig5032
    @enkhjinganzorig5032 3 роки тому

    Thank you it helped me a lot!❤

  • @santosmiguelhuancabendita9037
    @santosmiguelhuancabendita9037 4 роки тому +1

    Muchas gracias, me salvaste

  • @orangesage04
    @orangesage04 4 роки тому +2

    2:05 "That will make sure that's in effect for the rest of the program"
    What if I want only the following cout line to output fixed precision but the other following couts to output default?

    • @deborahs948
      @deborahs948  4 роки тому +4

      Try setting precision to 0 as this will reset to default.

  • @riotfist9747
    @riotfist9747 2 роки тому

    I'm a little confused by these manipulators. What are they exactly? Are they functions etc? The precision seems to require an argument or at least I think so. Then the rest are just called or used like predefined variables.

  • @muhammadsarim4734
    @muhammadsarim4734 4 роки тому

    Good work

  • @luisrios8660
    @luisrios8660 5 років тому

    how do you make decimals always get aligned no matter what

  • @DHIRAJKUMAR-je4ql
    @DHIRAJKUMAR-je4ql 3 роки тому

    thanks a lot sir

  • @billytrinh8918
    @billytrinh8918 6 років тому +1

    so how come the "z=10" does not show the decimal point, even though the showpoint command preceded it?

    • @deborahs948
      @deborahs948  6 років тому +3

      z is an integer and integers are whole numbers, they do not have decimal points. Show fixed, showpoint and setprecision have not affect on integers. This is why z does not display with a decimal point.

    • @lwando2021
      @lwando2021 5 років тому

      Deborah S
      What about y? After you set the precision to zero it didn’t show y as 988.0 and you said showpoint makes sure that the zero is not left out.

    • @fcnator
      @fcnator 5 років тому

      @@lwando2021 you probably already figured it out but for future people who might have the same problem:
      showpoint by default will show the number in decimal form for up to 6 significant numbers. so 7 would be 7.00000
      when fixed is used with setprecision(n) it will show an n amount of numbers after the decimal. so when she did setprecision(0) it showed zero numbers after the decimal.

  • @zaneisback
    @zaneisback 4 роки тому

    thanks debbie :)

  • @blackfun4448
    @blackfun4448 3 роки тому

    it was helpful

  • @mohitsrivastava6558
    @mohitsrivastava6558 4 роки тому

    Thank you :)

  • @deathknell7342
    @deathknell7342 5 років тому

    Thanks a lot

  • @mohammedkhaled1840
    @mohammedkhaled1840 2 роки тому

    وين اخت الfixed طيب