move to cmake

This commit is contained in:
2024-06-03 09:59:35 -05:00
parent d1c056e734
commit 087f132a32
41 changed files with 558 additions and 367 deletions

View File

@@ -1,23 +1,18 @@
#include "common.hpp"
#include <dtl/dtl.hpp>
#include <iostream>
#include <string>
#include "storage.hpp"
using namespace std;
using dtl::Diff;
int main(int argc, char *argv[]) {
if (isFewArgs(argc)) {
cerr << "Too few arguments." << endl;
std::cerr << "Too few arguments." << std::endl;
return -1;
}
typedef char elem;
typedef string sequence;
typedef std::string sequence;
sequence A(argv[1]);
sequence B(argv[2]);
@@ -26,13 +21,13 @@ int main(int argc, char *argv[]) {
d.compose();
// Shortest Edit Script
cout << "SES" << endl;
std::cout << "SES" << std::endl;
string result;
std::string result;
d.storeSES<string, CustomStorage>(result);
d.storeSES<std::string, CustomStorage>(result);
cout << result;
std::cout << result;
return 0;
}