problem in make file "urgently need solution"

Discussion in 'C' started by Rajkamal2013, Aug 28, 2010.

  1. Rajkamal2013

    Rajkamal2013 New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Write a C/C++ program to read a text file and count the number of occurances
    of the words present in the file. Display the words in sorted order (increasing
    order of their counts). Your program should be structured as follows:
    readFile.cpp: file handling file
    -- functions to read a text file
    readFile.h: function declaration of the functions present in readFile.cpp
    charHandle.cpp: string handling file
    -- any function which performs string manipulation
    1. extracting strings from the buffer read from the read function define
    in readFile.cpp
    2. counting of the words
    charHandle.h: function declaration
    wordSort.cpp: sort handling file.
    -- all the sorting related function should be placed under this file.
    wordSort.h: sort functions declarations
    myProg.cpp: the file which contains only main() function.
    Note: you can give the file name of your choice. If required, you can also create
    more files and more functions. Every module/function should be as small as
    possible i.e., each module should perform smallest possible task.
    All the user's data type declarations/ function declarations should be placed
    under *.h files. The definition of the functions should be placed under *.cpp
    files. The main program should have only the main function.
     

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