I found a quite interesting problem on the Internet, and of course, out of curiosity, I tried to solve it. Too bad nothing came to an end :(.
The task was to count the alphabet's upper letters appearing in a given text and to print on the screen all the alphabet's letters and the rate of appearing (how many times was that letter in the given text).
What I created didn't have any result, unfortunately.
I tried, in a "for" loop, to count the appearing of every letter, using strchr (alphabet, text's current letter); considering my text in an array. No idea what my program did, because it shut my C++ program, so I lost it, but it's for sure that it didn't work.
If you have any other ideas on how to solve this, I'd dying out of curiosity.
Thanks && Cheers !
M00nDancer 0 Newbie Poster
Recommended Answers
Jump to PostStart of by giving us an example of your code. So we can see where you are going wrong. Also pointing us to the bit you think is the problem would be good.
Jump to PostSounds an awful lot like a homework assignment, C++ would not delete your source file if it crashed.
All 6 Replies
Freaky_Chris 299 Master Poster
kenji 1 Junior Poster
sidatra79 36 Junior Poster
M00nDancer 0 Newbie Poster
Freaky_Chris 299 Master Poster
ArkM 1,090 Postaholic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.