• 大小: 81KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-16
  • 语言: 其他
  • 标签: LCS算法  

资源简介

借助LCS算法实现文本文档比对,可以自行扩展支持word等格式文件

资源截图

代码片段和文件信息

// BitMatrix.cpp: implementation of the CBitMatrix class.
//
//////////////////////////////////////////////////////////////////////

//#include “stdafx.h“
//#include “TXTCompare.h“
#include “BitMatrix.h“

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

/*
inline CBitMatrix::CBitMatrix(unsigned int rows unsigned int cols)
   : rows_ (rows)
     cols_ (cols)
     data_ (new int[rows * cols])
{
 if (rows == 0 || cols == 0) 
         throw; //BadIndex(“Matrix constructor has 0 size“);
}
 
inline CBitMatrix::~CBitMatrix()
{
   delete[] data_;
}
 
inline int& CBitMatrix::operator() (unsigned int row unsigned int col)
{
   if (row >= rows_ || col >= cols_)
     throw; //BadIndex(“Matrix subscript out of bounds“);
   return data_[cols_*row + col];
}
 
inline int CBitMatrix::operator() (unsigned int row unsigned int col) const
{
   if (row >= rows_ || col >= cols_)
     throw; //BadIndex(“const Matrix subscript out of bounds“);
   return data_[cols_*row + col];

*/

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        1143  2003-02-24 17:33  VDiff\BitMatrix.cpp
     文件        3348  2003-02-24 17:33  VDiff\BitMatrix.h
     文件       17204  2003-02-24 16:19  VDiff\CmpMngr.cpp
     文件        1563  2003-02-24 11:08  VDiff\CmpMngr.h
     文件         374  2003-01-17 20:02  VDiff\Diff.cpp
     文件         599  2003-01-17 20:02  VDiff\Diff.h
     文件         761  2003-02-22 21:25  VDiff\VDiff.dsw
     目录           0  2003-02-24 18:50  VDiff\VDiffCmdLine\
     文件        1244  2003-02-22 20:03  VDiff\VDiffCmdLine\ReadMe.txt
     目录           0  2003-02-24 18:51  VDiff\VDiffCmdLine\Release\
     文件      102400  2003-02-24 18:22  VDiff\VDiffCmdLine\Release\VDiffCmdLine.exe
     文件         750  2003-02-22 20:30  VDiff\VDiffCmdLine\VDiffCmdLine.cpp
     文件        5403  2003-02-24 18:23  VDiff\VDiffCmdLine\VDiffCmdLine.dsp
     文件         749  2003-02-22 21:19  VDiff\VDiffCmdLine\VDiffCmdLine.dsw
     目录           0  2003-02-24 18:50  VDiff\VDiffGUI\
     文件        3561  2003-02-22 16:39  VDiff\VDiffGUI\ReadMe.txt
     目录           0  2003-02-24 18:50  VDiff\VDiffGUI\Release\
     文件        3156  2003-02-24 18:17  VDiff\VDiffGUI\Release\VDiff.res
     文件       45056  2003-02-24 18:39  VDiff\VDiffGUI\Release\VDiffGUI.exe
     目录           0  2003-02-24 18:50  VDiff\VDiffGUI\res\
     文件        1078  2003-02-22 21:16  VDiff\VDiffGUI\res\VDiff.ico
     文件         397  2003-02-22 16:39  VDiff\VDiffGUI\res\VDiff.rc2
     文件        1004  2003-02-24 10:17  VDiff\VDiffGUI\resource.h
     文件         207  2003-02-22 16:39  VDiff\VDiffGUI\StdAfx.cpp
     文件        1054  2003-02-22 16:39  VDiff\VDiffGUI\StdAfx.h
     文件        2047  2003-02-22 20:35  VDiff\VDiffGUI\VDiff.cpp
     文件        1313  2003-02-22 20:34  VDiff\VDiffGUI\VDiff.h
     文件        6747  2003-02-24 10:17  VDiff\VDiffGUI\VDiff.rc
     文件        6424  2003-02-24 18:39  VDiff\VDiffGUI\VDiffDlg.cpp
     文件        1445  2003-02-24 10:16  VDiff\VDiffGUI\VDiffDlg.h
     文件        5619  2003-02-24 18:23  VDiff\VDiffGUI\VDiffGUI.dsp
............此处省略1个文件信息

评论

共有 条评论

相关资源