0

SOS. Yes, we are allowed to use inbuilt functions. I tried to edit the above code but somehow I cannot change it. And Dragon, I understand why we use 255, it's quicker, and more accurate.

0

If you are allowed to use inbuilt functions, why are you writing your own code for makeing the characters uppercase. Just use:

for( i = 0; i < MAX_LETTERS; ++i )
{
    letters[i] = toupper( letters[i] ) ;
}

This will make the entire contents of the array uppercase.

Loop through array with something like to count each character:

for( i = 0; i < num_used; ++i )
{
    count[ letters[i] ] ++ ;
}

Try this thing and repost.

0

Hey all,
I handed the project in and we'll see how it all turned out. Thanks and God Bless.

0

You can show that this thread is solved by clicking the link "Mark this thread as solved" at the top of this page (it's beside the other links titled "Show printable version" and "Email this page").

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.