Thread: compressed file project

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    3

    compressed file project

    im new in c++ language, and im take project as follow:


    ---------------------------------------------------------------------
    write a c++ program that take compressed file as input and generate a reproduction of the original uncompressed file contain no digit characters as output, such that:

    1- assume that no word contains more than 50 characters and that the original uncompressed file contain no digits characters>

    2- the compressed schema, requieres making an array of strings in the uncompressed file,when a non alphabetic charachter is encountered in the uncompressed file, it is copied directly into the compressed file.

    3- when a word is encounterd in the uncompressed file>

    a) it is copied directly into the compressed file only if this is the first occurrence of the word.

    b) if it is not the first occurence, the word is not copied to the compressed file
    c) insted its position is copied into the compressed file>


    4- the words are case-sensitive; the word abc is not the same as the word Abc
    5- there is no upper limit on the number of different words in the input file.
    the end of the input file is signified by the number 0 on a line by itself.
    the terminating 0 merely indicates the end of input and should not be part of the output produced by your program.

    Hinit:

    x-ray contains 2 words: x and ray
    it's a winner contains 4 words: is and s and a and winner>

  2. #2
    Use this: dudeomanodude's Avatar
    Join Date
    Jan 2008
    Location
    Hampton, VA
    Posts
    391
    sniff, snifff, this stinks of homework.
    Ubuntu Desktop
    GCC/G++
    Geany (for quick projects)
    Anjuta (for larger things)

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Same old homework, same broadcast all over the web.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    3
    what u mean mr salem

    where i can found it

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by paltech View Post
    what u mean mr salem

    where i can found it
    I think Salem was referring to the fact that you posted homework "please post the answer" in several places on the web.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    http://www.daniweb.com/forums/thread125003.html
    How many more are there?

    If you're still wondering how you messed up,
    http://www.catb.org/~esr/faqs/smart-...ons.html#forum
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    May 2008
    Posts
    3
    ok thank's all

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File transfer- the file sometimes not full transferred
    By shu_fei86 in forum C# Programming
    Replies: 13
    Last Post: 03-13-2009, 12:44 PM
  2. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  3. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 10:57 AM