Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<...>
- class some_stupid_class {
- public:
- int retarded_variable,
- of_same_type;
- float my_stupid_float;
- static const int THIS_BE_CONSTANT = 1337;
- private:
- do_crazy_shit() {
- if ( this->retarded_variable == 1 ) {
- // Comments always begin with capitalized letter and end with punctuation.
- int a = this->other_method( 1, 2 );
- // Short ternary.
- int c = true ? 1 : 2;
- // Long ternary.
- int b = 1 == 2 && 3 == 4 || 3 == 5
- ? another_long_method()
- : 0;
- }
- int x = 0;
- for ( int i = 0; i < 100; ++i ) {
- x += 1;
- }
- {
- bar();
- }
- }
- int other_method( int arg1, int arg2 ) {
- return 1337;
- }
- func1() {
- foo(); // Above line kept blank for clarity.
- bar();
- if(i < 0) {
- i++;
- }
- {
- // This is an anonymous block.
- bar();
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement