CStringList lst 获得指定索引的元素 CStringList lstCString sInputItem = lst.GetAt(0); 报错,改为CString sInputItem = lst.GetAt(lst.FindIndex(nInputIndex));