How to format dynamic string in c++

Any update on this?