This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pub:software:development:vscodium:cpp:get_started [2026/08/26 07:49] – [Get started with VSCodium C++] admin | pub:software:development:vscodium:cpp:get_started [2026/09/01 03:39] (current) – [Using the format library] admin | ||
|---|---|---|---|
| Line 332: | Line 332: | ||
| #include < | #include < | ||
| - | using namespace | + | using std::cout; |
| - | using namespace | + | using std::endl; |
| + | using fmt::format; // Note either use "using namespace fmt", or better, limit scope to format only: " | ||
| + | using fmt::print; | ||
| int main(int argc, char** argv) | int main(int argc, char** argv) | ||
| Line 356: | Line 358: | ||
| #include < | #include < | ||
| - | using namespace | + | using fmt::print; // Note either use "using namespace |
| int main() | int main() | ||