C++ Tutorial: Convert character cases using toupper() and tolower()

Поделиться
HTML-код
  • Опубликовано: 4 фев 2025

Комментарии • 26

  • @caioeduardo9837
    @caioeduardo9837 3 года назад +3

    Thank you man! You did what my teacher couldn't, you helped me a lot.

  • @TrumpISAgentORANGE
    @TrumpISAgentORANGE Год назад

    Thank you a bunch!!! I really needed to see the for loop used with a case conversion. Need it for homework. You're an 😇. Subbed fo' life!!

  • @pedroadami7497
    @pedroadami7497 4 года назад +1

    Thank you! Your video helped me a lot! I was kinda stuck with it!

  • @carlschuette358
    @carlschuette358 2 года назад +1

    My program runs fine without the #include . Is that just a windows thing?

    • @ProfessorHankStalica
      @ProfessorHankStalica  2 года назад +1

      Best practice is to always include the header file where something is defined. If it works without defining, that means that cctype was included in some other header file that you DID include. You can't rely on that as that header file could change in the future.

  • @EeizeMode
    @EeizeMode 4 года назад +1

    Thank you! Helped me alot.

  • @arayakongthong7983
    @arayakongthong7983 3 года назад +1

    Thank you your video help me to make project !

  • @nyasha4964
    @nyasha4964 Год назад

    Out of all the character functions, does static_cast only apply to toupper and tolower?

  • @aquagod
    @aquagod 3 года назад +1

    THX BRO I LOVE U!

  • @mayahamed2167
    @mayahamed2167 3 года назад +1

    Thank you so much!

  • @ronaeb.3420
    @ronaeb.3420 3 года назад +1

    Hi, What platform are you using to code?

  • @sutapapaul2286
    @sutapapaul2286 2 года назад

    Thank you for the tutorial. I tried same and it works fine. Only issue is, it doesn't work for all UTF-8 characters(Latin) & i am kind off stuck with it.

    • @ProfessorHankStalica
      @ProfessorHankStalica  2 года назад +1

      I would look in the library for something that does support other character sets. I remember reading about that and may do a future video for that.

  • @matthew_le
    @matthew_le 4 года назад +2

    thank you, I was making the mistake of the ASCII code sign returned so when I put in a letter, it gave me back a number, LOL

  • @nyasha4964
    @nyasha4964 Год назад

    Out of all the character functions, does static_cast only apply to toupper and tolower?

    • @ProfessorHankStalica
      @ProfessorHankStalica  Год назад

      You use it whenever you need to explicitly cast something. If you need it, use it. If you don't, don't.
      In other words, it depends. 😎
      Even then, you don't necessarily need static_cast with toupper or tolower.
      For example,
      char c = toupper('a');
      cout