Hi guys I am really having a hard time with C programming. Our lectures are very fast and not beneficial to those with non-C backgrounds. We were required to write a code for counting frequency of words from stdin and then listing them in descending order with those with equal length being alphabetized. Please help me because I am really lost with this program. I really need it.
bobcats 0 Newbie Poster
Recommended Answers
Jump to PostDon't forget he/she wants it in descending order?
Jump to PostNo I wasn't asking, I was correcting. :cheesy:
;)
Jump to Post>What I meant with the things not being allowed is that the output wanted was to be straightforward.
The output has no relationship to how you produce the answer. You can solve the problem a dozen wildly different ways and get exactly the same desired output that you posted.…
Jump to PostHm...just curious. Would the same expression cause signed overflow if we were assured that the "integer value" would always be greater than or equal to zero ?
I think no since no matter which combination we try the subtraction operator will not yeild an overflow when both the numbers …
Jump to PostLet's add five years to the program. You've moved on to more interesting things and there's a change order. How is the maintenance programmer supposed to know that negative numbers are taboo? What if the change order requires them? By over-intellectualizing, you've introduced a bug and a fix that wouldn't …
All 38 Replies

iamthwee
bobcats 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
bobcats 0 Newbie Poster
John A 1,896 Vampirical Lurker Team Colleague
Narue 5,707 Bad Cop Team Colleague
Salem 5,265 Posting Sage

iamthwee
bobcats 0 Newbie Poster

iamthwee
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

iamthwee
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

iamthwee
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

iamthwee
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Narue 5,707 Bad Cop Team Colleague
~s.o.s~ commented: *shoots himself in the head* I overlooked that possibility, thanks - ~s.o.s~ +14

iamthwee
Narue 5,707 Bad Cop Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Narue 5,707 Bad Cop Team Colleague
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Narue 5,707 Bad Cop Team Colleague
Lerner 582 Nearly a Posting Maven

iamthwee
bobcats 0 Newbie Poster
Lerner 582 Nearly a Posting Maven
bobcats 0 Newbie Poster
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.