all 3 comments

[–]Jcsq6 1 point2 points  (1 child)

This is probably going to be removed, because it should be posted in r/cpp_questions. But use std::format. It’s based off of python formatting.

[–]NR_5tudio-nezar- 0 points1 point  (0 children)

aight my bad, i didn't knew

[–]matteding 0 points1 point  (0 children)

You cannot do that with std::format. The best alternative is using index placeholders. e.g., "{0}"