Advertisement
konalisp

bitcoins.HAPPENING()

Oct 8th, 2014
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. #include <iostream>
  2. #include <functional>
  3.  
  4. using namespace std;
  5.  
  6. class RonPaul {
  7. public:
  8.         RonPaul() { //constructor
  9.             cout << "SPRING BREAK" << endl;
  10.         };
  11.        
  12.         string HAPPENING() { //gay, slow way to define a function
  13.             return "YOU COULD HAVE LISTENED";
  14.         }
  15.        
  16.         function<string(void)> not_happening = []() { //fast, efficent, functional way to define a function.
  17.             return "Okay I guess we didn't need to listen";
  18.         };
  19.        
  20.         ~RonPaul() { //destructor
  21.             cout << "this party sucks" << endl;
  22.         };
  23. };
  24.  
  25. int main(int argc, char **argv){
  26.         RonPaul bitcoins;
  27.         cout << bitcoins.HAPPENING();
  28.         cout << "\n";
  29.         cout << bitcoins.not_happening();
  30.         cout << "\n";
  31.        
  32.         return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement