View Single Post
Old 05-07-2004, 11:32 AM   #39 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Yes, erm, what I expected. VC6 doesn't support closing of ranges for
variables declared at the beginning of a for statement.

There is a workaround, but I can't test it probably since I don't want to install vc6 (I use 7).
Anyway, change your "print" code and see what happens, in the mean time I'll wait for a friend of mine for your problem:

Code:
VPairs::iterator i = Deck.begin();
	for(; i <= Deck.end(); ++i)	
	{
		cout<< (*i).first <<" "<< (*i).second<<endl;
	}
__________________
Valmont is offline   Reply With Quote