move to cmake
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user