Using C#, how can I replace similar words?

后端 未结 5 2059
孤城傲影
孤城傲影 2021-02-04 17:26

Assuming these two strings:

string s1=\"control\";
string s2=\"conrol\"; (or \"ocntrol\", \"onrtol\", \"lcontro\" etc.)

How can I programatical

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-04 17:46

    I'll Suggest a simpler answer. Compare the length of the 2 strings & also compare the sum of ASCII values of the both strings.

提交回复
热议问题