如题!本人在网上已经找了好久了,都没有满意的,大牛你在哪儿?

解决方案 »

  1.   

    找到一个《压缩软件LHA的C程序源代码》,你可以看看。
    http://code.zz265.com/vcycx/vcwjcl/soft_9538.html
      

  2.   

    c的我这也有,由于c的代码中有好多位操作等,不好转化为java。想要现成的java代码,给个算法也行啊。
      

  3.   

    Java也有位操作啊^_^
    我没找到现有的Java代码,另外,我不熟悉LHA压缩,不知道代码怎么写。
      

  4.   

    刚才找到好多这样的帖子,看不明白,谁能帮忙解释一下lzh   format   
      the   lharc/lha   archiver   is   a   multi   platform   archiver   made   by   haruyasu   yoshizaki,   
      which   has   a   relatively   good   compression.   it   uses   more   or   less   the   same   
      technology   like   the   zip   programs   by   phil   katz.   there   was   a   hack   named   "ice",   
      which   had   only   the   graphic   characters   displayed   on   decompression   changed.   
      offset                             count   type       description   
      0000h                                       1   byte       size   of   archived   file   header   
      0001h                                       1   byte       checksum   of   remaining   bytes   
      0002h                                       3   char       id='-lh'   
                                                                        id='-lz'   
      0005h                                       1   char       compression   methods   used   (see   table   0005)   
      0006h                                       1   char       id='-'   
      0007h                                       1   dword     compressed   size   
      000bh                                       1   dword     uncompressed   size   
      000fh                                       1   dword     original   file   date/time   (see   table   0009)   
      0013h                                       1   word       file   attribute   
      0015h                                       1   byte       filename   /   path   length   in   bytes   
                                                                        ="len"   
      0016h                               "len"   char       filename   /   path   
      0018h                                       1   word       crc-16   of   original   file   
      +"len"   
      (table   0005)   
      lharc   compression   types   
          "0"   -   no   compression   
          "1"   -   lzw,   4k   buffer,   huffman   for   upper   6   bits   of   position   
          "2"   -   unknown   
          "3"   -   unknown   
          "4"   -   lzw,   arithmetic   encoding   
          "5"   -   lzw,   arithmetic   encoding   
          "s"   -   lha   2.x   archive?   
          "\"   -   lha   2.x   archive?   
          "d"   -   lha   2.x   archive?   
      extension:lzh,ice   
      occurences:pc   
      programs:lharc.exe,   lha.exe   
      

  5.   

    看不明白~~
    你直接看它核心的代码吧,就是进行LHA压缩的那部分
      

  6.   

    有点失落,不过十分感谢brooksychen(初晨之阳)的回答
      

  7.   

    说实话,这个这个版面讨论的大多数是Java语言本身的问题,大家对于程序的核心,也就是算法讨论的比较少。
    而且,像LHA
      

  8.   

    这种专用的算法研究的人更少。建议你去数据结构和算法版问问看。
    Good luck!(上一个回复还没说完,就不小心发送出去了……)