Update template.cpp

add string const resstr[]