oleksandrzelentsov / levenstein_distance

Implementation of Levenstein distance in C with comparison between several languages.
2 stars 2 forks source link

implement file input #4

Closed oleksandrzelentsov closed 7 years ago

oleksandrzelentsov commented 7 years ago

Cases

New behavior cases

Old behavior

Persists regardless of filesystem state.

$ ./dist <word1> <word2>

Behavior description

New behavior case should print a list of measurements sorted by the results of measurements. Example:

w3, w2 = 3
w2, w1 = 2
w1, w3 = 1

Words are taken from the file. Each word is compared with each another word (order does not matter). If the index argument is given, it should compare all words only to the word in a file, referenced by the value of index argument. If there is no word in file under given index, print an error and usage message.

oleksandrzelentsov commented 7 years ago

List of words to test out:

oleksandrzelentsov commented 7 years ago

stuck on reading file, details: 2a51b8059989a77e0244f4096c50c5f31d83b1bf UPD: solved

oleksandrzelentsov commented 7 years ago

http://cboard.cprogramming.com/c-programming/87932-reading-unicode-file.html http://www.cplusplus.com/reference/cwchar/

oleksandrzelentsov commented 7 years ago

closed by #13