下記を参考に、ただ単にsprintfを使う方法が絶対楽。
sprintf
procongame.hatenablog.com
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.