Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

need help

[b][red]This message was edited by the Moderator at 2002-2-9 19:27:53[/red][/b][hr]
i have this code written:
[code]
struct word_freq
{
int length;
int freq;
int cum_freq;
};

int wordlength(int length)
{
for (int i=0, i<MAX_LETTERS, i++)
{
if (??[?]==length)
return ???
else ???[/code]
i want to calculate length, frequency, and cumulative frequency but i cant get the ?? marks filled in. everything should be stored in an array thanks for anyones help.



Comments

  • dmbdmb Member Posts: 18
    : [b][red]This message was edited by the Moderator at 2002-2-9 19:27:53[/red][/b][hr]
    : i have this code written:
    : [code]
    : struct word_freq
    : {
    : int length;
    : int freq;
    : int cum_freq;
    : };
    :
    : int wordlength(int length)
    : {
    : for (int i=0, i<MAX_LETTERS, i++)
    : {
    : if (??[?]==length)
    : return ???
    : else ???[/code]
    : i want to calculate length, frequency, and cumulative frequency but i cant get the ?? marks filled in. everything should be stored in an array thanks for anyones help.
    :
    :
    :
    :

    ok so you want the function wordlength to return the length? where do you want to find the frequencies? how do you plan on using this in main??

Sign In or Register to comment.