المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How can I return a deque from a function?



C++ Programming
12-30-2009, 02:21 PM
I have a list of states Id like to return from a function.
So I call a class:


CStates dlg;
if (dlg.DoModal() == IDOK)
{
std::deque text;

text = dlg.GetStates();
}


How can I return that deque from the class GetStates()? I
just cant get it to work?