Update ex10_6_9_10.cpp

resize v before set0.
Merge pull request #23 from zzzkl/patch-1

Update ex10_6_9_10.cpp