|
|
|
|
|
by LaLaLand122
1124 days ago
|
|
I will never type this: printf("You have %d items of type %s.\n", itemCount, itemType.c_str());
When I could do this: std::println("You have {} items of type {}.", itemCount, itemType);
https://en.cppreference.com/w/cpp/io/print
|
|
Edit: Oh, it's in C++23 standard. Only took them 38 years! ;-)