Help

Discussion in 'C' started by gkanu7, Aug 22, 2007.

  1. gkanu7

    gkanu7 New Member

    Joined:
    Aug 22, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi.. am i noob in programing. well had this program with me.. which i have no idea how i should do.. the question is like this.. Count the frequency of the keywords that occur in a file inputed by the user.(the file is a C file).
    any help..???
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Analyze your problem, devise a solution, and write some code. Present the troublesome code here for help.

    Generally speaking, you'll want to read the file a line at a time, tokenize the line, compare each token to the list of keywords, and count those which match. Learning to do this is YOUR task, but we will help you.

    Read this thoroughly before you post your code and questions.

    Incidentally, the subject line for your thread should be searchable so that those with similar problems can find the answer. "HELP" is either thoughtless or stupid.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    The question you should ask to yourself is what you have done to solve the problem.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice