首页 > > > MFC如何实现键值对
要求:实现一个函数,在函数内部使用键值对填充一个能保存键值对的变量,返回该变量供外部函数调用
eg:
xxx GetKeyValue()
{
for(inti=0;i<10;i++)
{
strKey ="Name";
strValue ="李四";
xxx(strKey,strValue);
}
return xxx;
}void main
{
xxx = GetKeyValue();
//循环遍历xxx中的保存的值};
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2310/viewspace-3142169/ ,如需转载,请注明出处,否则将追究法律责任。