C++ program- Counts number of times a specific letter appears in a string

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

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

  • @marcus3435
    @marcus3435 6 лет назад +2

    how would you fix your program to find the number of different letters in the alphabet? the number will be from 1-26 inclusive. also, if the letter occurs more than once, than we don't count it
    i need help!!!

  • @FFxDRIFTER
    @FFxDRIFTER 8 лет назад

    Thanks man. This really helped with my homework. You are a life saver!

  • @this_is_a_channel1236
    @this_is_a_channel1236 3 года назад

    OH MY GOD THANK YOU SO MUCH THIS WAS IN MY ICT PROJECT THANK YOUUUUUU

  • @MrOppaiGaDaisuki
    @MrOppaiGaDaisuki 6 лет назад

    how can I make the program to count the caps lock letters??

  • @ZindabadChannel
    @ZindabadChannel 7 лет назад +2

    Thanks man you save my program...

  • @lucetubegplusstillsux2678
    @lucetubegplusstillsux2678 8 лет назад +2

    Thank you so much this helped a lot!

  • @TrickyJebus
    @TrickyJebus 10 лет назад

    without using namespace std?
    im using only the stdio.h and string.h

  • @naniyos1
    @naniyos1 5 лет назад

    how about for all the letters in a word and not just a specific nr. for example, if I insert the word 'food', then the output should be(f = 1, o=2, d=1).

  • @adangomez5073
    @adangomez5073 6 лет назад

    How could this be done with a while loop? I try to format it in the way for the while loop, but I encounter many errors.

  • @tunamusic2314
    @tunamusic2314 4 года назад

    why you can use the keyword ' string ' when you don't include the lib #include
    as i known , we can only use getline() when we declare the #include
    can someone explain this to me?

    • @beginnerprograms7606
      @beginnerprograms7606  4 года назад

      Brian Gacha Senpai it’s actually coming from the iostream library which I included

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

    How would you do this with a map?

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

    Thank you so much sir!!

  • @6KArkade
    @6KArkade 3 года назад

    thanks, a life saver here.

  • @PaxiKaksi
    @PaxiKaksi 6 лет назад +2

    When i literally copy the program i still get errors........
    WTF

    • @beginnerprograms7606
      @beginnerprograms7606  6 лет назад

      are putting
      using namespace std;
      before "int main()"?

    • @PaxiKaksi
      @PaxiKaksi 6 лет назад +2

      That was not the problem. But i fixed it anyways. thanks

    • @MrOppaiGaDaisuki
      @MrOppaiGaDaisuki 6 лет назад

      LOL this is always me

  • @TheAlewonka
    @TheAlewonka 5 лет назад

    Thank u so much, you’re the best

  • @Eyeamthatpanda
    @Eyeamthatpanda 7 лет назад

    How can you do this with list ?

  • @MrEddyyyyy
    @MrEddyyyyy 4 года назад

    Is it posible also with *?

  • @shahrukhal1
    @shahrukhal1 5 лет назад

    Love you sir you r brilliant i appreciate ur work ;-)

  • @Itzjjgang
    @Itzjjgang 3 года назад

    anybody know how to do this in python

  • @cylenics4119
    @cylenics4119 9 лет назад

    how about in java?

  • @giteshsharma7675
    @giteshsharma7675 9 лет назад

    which ide you are using

  • @monstesam
    @monstesam 7 лет назад

    Am am getting 23 as number of times a appears

  • @PaxiKaksi
    @PaxiKaksi 6 лет назад

    I constantly get "Cout was not declared in this scope"
    Could this be due to my anti-virus ?

  • @11b1nirmalk9
    @11b1nirmalk9 4 года назад

    vera level bro tks

  • @HelloxWorldxSmile
    @HelloxWorldxSmile 9 лет назад

    how do you do this for a whole word??

    • @extar1645
      @extar1645 9 лет назад

      +Romana Gallardo u dont use a char u will need to use a string for that instead of a char