Add Bjarne's cppFormat ROT

This commit is contained in:
Shaun Reed 2020-01-25 16:59:01 +00:00
parent 4c10e99e2f
commit cb00bea475
1 changed files with 37 additions and 0 deletions

37
refs/cppFormat Normal file
View File

@ -0,0 +1,37 @@
#include<iostream>
#include<string>
#include<sstream>
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<max; ++i) {
// Code...
}
}
int main()
{
int i = 127;
string ss = itos(i);
const char* p = ss.c_str();
cout << ss << " " << p << "\n";
}