Alright I kind of understand how this is used in theory but how would I actually put it into a program because all the example I look at are not in a code I am not asking for a code writing out just a little hint to put me in the right direction so in the following example
#include<string>
#include< iostream>
using namespace std;
string User = " Hey how are you ";
int main()
{
if( User == " how are you")
{
cout << " Hello" << endl;
}
else
{
cout<< " unknown input" << endl;
}
}
How would I put the Levenshtein distance into this program so where even though "hey" is infront of the rest the program will still read it as the correct input.