Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "guy.h"
- #include "girl.h"
- #include "love.h"
- using namespace life;
- int main()
- {
- Guy guy = new Guy("Me");
- Girl girl = new Girl("You");
- //are these bool methods actually binary?
- if( guy.isLikedBy(girl) && girl.isLikedBy(guy) )
- {
- //poor nesting, simplify perhaps?
- if( areEmotionallyCompatible(guy, girl) )
- {
- //shouldn't you use && and not ||
- if( guy.isWilltoCommit() || girl.isWillToCommit() )
- {
- //are these statements ordered correctly at all??
- if( guy.isSingle() && girl.isSingle() )
- {
- goto love; //where does this lead to...
- }
- }
- }
- }
- else
- {
- ;; //huh?
- }
- }
Add Comment
Please, Sign In to add comment