Thread: checking how frequent a word appear in a string

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    2

    checking how frequent a word appear in a string

    hi,
    im trying to write a c-program that counts the frequency of a given word in a sentence and is terminated by a % sign, I have tried all sorts of code and its been givin me hell...can anyone assist me plz

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Quote Originally Posted by kemar View Post
    hi,
    im trying to write a c-program that counts the frequency of a given word in a sentence and is terminated by a % sign
    Good for you.

    Seriously though, what have you tried? Read our homework policy. Give it your best shot, and if you get stuck, come back and post your code in code tags. Then ask a specific question. It would probably be good for you to read the forum guidelines too.

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    2
    ok i got it working now ill post the code as soon as i figure out dis [code] thing and thanks for the heads up..............

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 01-28-2010, 03:50 PM
  2. Frequent Job Interviewing Questions
    By Mystic_Skies in forum A Brief History of Cprogramming.com
    Replies: 46
    Last Post: 02-27-2005, 09:07 AM
  3. Word from a string...
    By reRanger in forum C++ Programming
    Replies: 7
    Last Post: 11-22-2004, 07:24 AM
  4. Pet Peeve: Frequent Formatting
    By lightatdawn in forum A Brief History of Cprogramming.com
    Replies: 31
    Last Post: 05-28-2002, 11:48 PM