Thread: text Compression

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    3

    text Compression

    i have to create a text compression application for uni. I was woundering how do you convert chararters into bytes/bites and vis versa??

    thanks fo rthe help.
    kelvin

  2. #2
    Registered User
    Join Date
    Mar 2006
    Posts
    3
    Also have anyone got any recommendations on how i should approach the project ie read the text file into a array and then compress or read text data into a varible and then compress??? Is there a limit on the size of arrays that can be used inside C++?

    thanks
    kelvin

  3. #3
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    This link to Huffman Encoding might help you some on the overall compression process.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  4. #4
    Registered User
    Join Date
    Mar 2006
    Posts
    3
    thanks, i was thinking about using dictionary bassed compression combined with null compression, what you think?

    kelvin

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 02:59 PM
  3. How to use FTP?
    By maxorator in forum C++ Programming
    Replies: 8
    Last Post: 11-04-2005, 03:17 PM
  4. Scrolling The Text
    By GaPe in forum C Programming
    Replies: 3
    Last Post: 07-14-2002, 04:33 PM
  5. Replies: 1
    Last Post: 07-13-2002, 05:45 PM