Character frequency

Hi! I'm trying to write a C++ program which finds the character frequency in a given string..
Can anyone please help me out???
Check this out for complete description about the program..
And this is my first post and I'm new to this, if I've posted in the wrong section please let me know..

[​IMG]

Replies

  • thechamp
    thechamp
    int freq[26]={0},i;
    int len=strlen(string);
    for(i=0;i freq[(string)-65]++;

    for(i=0;i<26;i++) {
    if(freq)
    cout<;
    }



    i have not compiled this program so there might be errors. try to understand the algorithm.

You are reading an archived discussion.

Related Posts

Hello people. My PC is connected to a hardware (eg micro-controller) through RS-232 Interfacing. I want to read the bit pattern of the command (through MATLAB) that i send from...
hello admin i was willing to buy java tutorials dvd... can you please elaborate it bit more..how many dvds are present in the pack...and cost .. i am unable to...
i am a student of B tech, 3rd year in electronics from GGSCET(PTU) Punjab. I am looking for 6 months summer training but unfortunately in any industry or company it...
i'm a 12th passing student & very much interested in computer science engineering & willingly to do some research work in this field. so help me & update me, inform...
Google breaks AdMob even by 2014; makes a $6B killing by 2020: Mobile Advertising says a report by . In light of recent due diligence by FCC on this acquisition...