klips/refs/cppFormat

38 lines
434 B
Plaintext

#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";
}