diff options
| author | Mitsuo Tokumori <[email protected]> | 2022-10-13 01:52:13 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2022-10-13 01:52:13 -0500 |
| commit | dd5bafc74c09c37a379e68a51bf8fa9a2c4a402a (patch) | |
| tree | 9c776c1201acb02fe06620a7297a57aeeec2ac46 /tips | |
| parent | 66c1292454acede647f3109fd53dad785ab9a035 (diff) | |
| download | LP1-dd5bafc74c09c37a379e68a51bf8fa9a2c4a402a.tar.gz LP1-dd5bafc74c09c37a379e68a51bf8fa9a2c4a402a.tar.bz2 LP1-dd5bafc74c09c37a379e68a51bf8fa9a2c4a402a.zip | |
Move include directive to example imp.
Diffstat (limited to 'tips')
| -rw-r--r-- | tips/formatting.adoc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tips/formatting.adoc b/tips/formatting.adoc index 3180aeb..58c5251 100644 --- a/tips/formatting.adoc +++ b/tips/formatting.adoc @@ -26,10 +26,11 @@ Example implementation: /* Stream manipulator macros * ========================= - * - * Requires <iostream> and <iomanip> */ +#include <iostream> +#include <iomanip> + // The parenthesis in C/C++ macros are best practice // https://stackoverflow.com/q/7186504/7498073 @@ -62,8 +63,6 @@ Example usage: /* Example usage * ============= */ -#include <iostream> -#include <iomanip> #include "aux.h" // It's easier to import a single .h to many .cpp files using namespace std; |
