I've learned a programming language in C/C++. I want to make a program which try to compare two arrays (random chars)and notify the user about the differrents. The program have to notify both the subtitution and insertion/deletion.
Here are the examples :
array 1 : xxxxxxxxx...(as standard)
array 2 : xxxyxxxxx...
the program will notify that,
"there are subtitution in 4th"
and
array 1 : xxxxxxx..
array 2 : xxyyxxxxx..
"there are insertion yy at 3rd"
I've designed the algorithm with conditional if, but they are still many bugs when i'm used on variant data (array2)
Here are the examples :
array 1 : xxxxxxxxx...(as standard)
array 2 : xxxyxxxxx...
the program will notify that,
"there are subtitution in 4th"
and
array 1 : xxxxxxx..
array 2 : xxyyxxxxx..
"there are insertion yy at 3rd"
I've designed the algorithm with conditional if, but they are still many bugs when i'm used on variant data (array2)
Comment