Skip to content

Glossary: Data Structures and Algorithms in C++

std::printf

Also written: printf, %g, %.2f

The C-style print function that takes a format string; %g prints a number plainly and %.2f prints two decimals.

Where the book teaches it

Related terms

std::format