MFC如何实现键值对
本帖最后由 php_fly 于 2013-08-05 10:47:56 编辑 要求:实现一个函数,在函数内部使用键值对填充一个能保存键值对的变量,返回该变量供外部函数调用
eg:
MFC 键值对
xxx GetKeyValue()
{
for(int i=0;i<10;i++)
{
strKey = "Name";
strValue = "李四";
xxx(strKey,strValue);
}
return xxx;
}
void main
{
xxx = GetKeyValue();
//循环遍历xxx中的保存的值
};