ini 文件:
user = abc
user = def
user = ghi
user = xyz
编码:
CSimpleIniCaseW ini;
ini.SetUnicode();
ini.LoadFile("myapp.ini");
CSimpleIniCaseW::TNamesDepend values;
ini.GetAllValues(L"", L"user", values);
values.sort(CSimpleIniCaseW::Entry::LoadOrder());
CSimpleIniCaseW::TNamesDepend::const_iterator i;
for (i = values.begin(); i != values.end(); ++i)
std::wcout << i->pItem << L"\n";
它只打印 xyz。我如何获得其他值?在将它们传递给另一个函数之前,我需要将它们插入到向量中。