Thread: Programming Love

  1. #1
    Registered User
    Join Date
    Aug 2002

    Programming Love

    Any additions to the if statements in main?

    male and female are objects defined in the people.h include file

    #include "people.h"
    #include <iostream.h>
    void main()
         male me;
         female you;
         bool is_it_real;
         is_it_real=TrueLove(me, you);
         if(is_it_real && !boyfriend.isscaredofcommitment)
              cout<<"Will you marry me?";
         else if(is_it_real && boyfriend.isscaredofcommitment)
              cout<<"I think we should see other people for awhile.";
         else if(!is_it_real && girlfriend.isab1tch)
              cout<<"Later ho.";
         else if(!is_it_real && !girlfriend.isab1tch)
              cout<<"I hope we're still friends.";
    bool TrueLove(male boyfriend, female girlfriend)
         float time_before_falling_in_love, time_together;
         int other_guys_available_for_dating;
         bool true_love;
              if(time_before_falling_in_love>other_guys_available_for_dating && !boyfriend.isaniceguy)
                   true_love = true;
                   true_love = false; 
              if(time_together>other_guys_available_for_dating && !boyfriend.isaniceguy)
                   true_love = true;
                   true_love = false; 
         return true_love;
    Last edited by Angelus; 06-09-2003 at 09:49 AM.

  2. #2
    Registered User moonwalker's Avatar
    Join Date
    Jul 2002
    if (is_it_real && girlfriend.isab1tch)
       cout << "Welcome to the real world!" << endl;

    (personal experience)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unconditional Love
    By jrahhali in forum A Brief History of
    Replies: 87
    Last Post: 05-17-2005, 01:18 AM
  2. Love - learned or inherent?
    By axon in forum A Brief History of
    Replies: 42
    Last Post: 01-24-2005, 12:09 PM
  3. "if you love someone" :D
    By Carlos in forum A Brief History of
    Replies: 12
    Last Post: 10-02-2003, 01:10 AM
  4. What signs are there of that a girl is in love with you?
    By A_guy in forum A Brief History of
    Replies: 29
    Last Post: 05-21-2003, 07:48 AM
  5. i love atmel
    By ehsiq in forum A Brief History of
    Replies: 2
    Last Post: 09-18-2001, 11:06 PM