From cb00bea4757fb01fc1950e005b231a7773b0edfb Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sat, 25 Jan 2020 16:59:01 +0000 Subject: [PATCH] Add Bjarne's cppFormat ROT --- refs/cppFormat | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 refs/cppFormat diff --git a/refs/cppFormat b/refs/cppFormat new file mode 100644 index 0000000..d15d53f --- /dev/null +++ b/refs/cppFormat @@ -0,0 +1,37 @@ +#include +#include +#include +using namespace std; + +class C : public B { + // Private implied.. +public: + // Code... +}; + +struct D { + // Public implied.. +private: + // Code... +}; + +void f(int* p, int max) +{ + if (p) { + // Code... + } + + for (int i = 0; i