Skip to content
Snippets Groups Projects
Commit b694582a authored by Eraser's avatar Eraser
Browse files

Cross IDE Adjustments

parent 952e0275
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,8 @@ int levenD(const std::string &s, const std::string &t) {
int m = t.length();
int cost = 0;
//Matrix to hold the levenshtein distance
int Matrix[n + 1][m + 1];
//Matrix to hold the levenshtein distance (longest string is 174)
int Matrix[175][175];
// Initialize the first row and column of the matrix,[0][0] is empty
for (int i = 0; i <= n; i++) {
Matrix[i][0] = i;
......
......@@ -7,6 +7,12 @@ int main() {
std::list<Cards> scrambledCards;
std::list<std::string> referenceCardNames;
/* on VsCode use this instead
//Take scrambled cards and put them in a list
scrambledCards = getListOfCards("../../scrambled.txt");
//take reference names and put them in a list
referenceCardNames = referenceNames("../../reference.txt");
*/
//Take scrambled cards and put them in a list
scrambledCards = getListOfCards("../scrambled.txt");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment