Error : warning: cannot pass objects of non-POD type `struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >' through `...';
int main()
{
ListeString Parts;
ListeString::iterator iter;
Parts.push_back("One");
Parts.push_back("Two");
Parts.push_back("Three");
iter = (*mtcParts)->begin();
while ( iter1 != (*mtcParts)->end())
{
printf("%s\n",*iter1);
iter1++;
}
getchar();
return 0;
}
By using cout, i am able to get the result but i need to get it with printf. Is it possible?
Thanks in Advance,
Abu