Update ex10_6_9_10.cpp

resize v before set0.