Guest User

Untitled

a guest
Jun 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. #include "guy.h"
  2. #include "girl.h"
  3. #include "love.h"
  4.  
  5. using namespace life;
  6.  
  7. int main()
  8. {
  9.     Guy guy = new Guy("Me");
  10.     Girl girl = new Girl("You");
  11.  
  12.     //are these bool methods actually binary?  
  13.     if( guy.isLikedBy(girl) && girl.isLikedBy(guy) )
  14.     {
  15.         //poor nesting, simplify perhaps?
  16.         if( areEmotionallyCompatible(guy, girl) )
  17.         {
  18.             //shouldn't you use && and not ||
  19.             if( guy.isWilltoCommit() || girl.isWillToCommit() )
  20.             {
  21.                 //are these statements ordered correctly at all??
  22.                 if( guy.isSingle() && girl.isSingle() )
  23.                 {
  24.                     goto love; //where does this lead to...
  25.                 }
  26.             }
  27.         }
  28.     }
  29.     else
  30.     {
  31.         ;; //huh?
  32.     }
  33. }
Add Comment
Please, Sign In to add comment