List<int> list = new List<int>();
string sentence = "See how much I love you";
string[] words = sentence.Split(new char[] { ' ', ',', '.' });//简单区分空格,逗号,句号之类的
for (int i = 0; i < words.Length; i++)
{ if (words[i]是错误的单词) list.Add(i);
}
最后list里面应该都是错误的下标了
不知道我理解的对不对!