template updated: use variadic templates to implement short-code scanf