mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 03:17:53 +00:00
Add printf example.
This commit is contained in:
parent
4e260e8599
commit
270ed1cb92
@ -54,7 +54,8 @@ This prints ``Hello, world!`` to stdout:
|
||||
|
||||
.. code-block:: c++
|
||||
|
||||
fmt::print("Hello, {}!", "world");
|
||||
fmt::print("Hello, {}!", "world"); // uses Python-like format
|
||||
fmt::printf("Hello, %s!", "world"); // uses printf format
|
||||
|
||||
Arguments can be accessed by position and arguments' indices can be repeated:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user