diff options
| author | Mitsuo Tokumori <[email protected]> | 2023-08-18 01:56:52 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2023-08-18 01:56:52 -0500 |
| commit | 49d4392ca1972c8d66b1015f2cdda414d94812b8 (patch) | |
| tree | 13585bcb546d97b96ec669457c06fc27f2d66ab7 /2022-2/L1/mitsuo/aux.h | |
| parent | d6e56dbe184cac37d7aa5cebe3e1db108dee4a28 (diff) | |
| download | LP1-49d4392ca1972c8d66b1015f2cdda414d94812b8.tar.gz LP1-49d4392ca1972c8d66b1015f2cdda414d94812b8.tar.bz2 LP1-49d4392ca1972c8d66b1015f2cdda414d94812b8.zip | |
Fix naming. Add leading 0 to lab names
Diffstat (limited to '2022-2/L1/mitsuo/aux.h')
| -rw-r--r-- | 2022-2/L1/mitsuo/aux.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/2022-2/L1/mitsuo/aux.h b/2022-2/L1/mitsuo/aux.h deleted file mode 100644 index ceb1ff3..0000000 --- a/2022-2/L1/mitsuo/aux.h +++ /dev/null @@ -1,30 +0,0 @@ -/* Stream manipulator macros - * ========================= */ - -// The parenthesis in C/C++ macros are best practice -// https://stackoverflow.com/q/7186504/7498073 - -// string -// (add space in front to separate adjacent right-aligned and left-aligned -// fields) -#define WL(w) " " << setw((w)-1) << left << setprecision(2) << fixed - -// number -#define WR(w) setw(w) << right << setprecision(2) << fixed - -// number with some 0-padding part (e.g., a code) -#define WR0(w, w0, x) setw((w) - (w0)) << "" \ - << setw(w0) << right << setfill('0') \ - << setprecision(2) << fixed << (x) \ - << setfill(' ') - - -/* Project definitions */ - -#define MAXLEN 100 // fixed length strings - - -/* Function declarations */ - -int readdate(std::istream &is); -void writedate(std::ostream &os, int intdate); |
