Programming Love

This is a discussion on Programming Love within the C++ Programming forums, part of the General Programming Boards category; Any additions to the if statements in main? male and female are objects defined in the people.h include file Code: ...

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    4

    Programming Love

    Any additions to the if statements in main?

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

    Code:
    #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>time_togeter)
         {
              if(time_before_falling_in_love>other_guys_available_for_dating && !boyfriend.isaniceguy)
                   true_love = true;
              else
                   true_love = false; 
         }
         else
         {
              if(time_together>other_guys_available_for_dating && !boyfriend.isaniceguy)
                   true_love = true;
              else
                   true_love = false; 
         }
         return true_love;
    }
    Last edited by Angelus; 06-09-2003 at 10:49 AM.

  2. #2
    Registered User moonwalker's Avatar
    Join Date
    Jul 2002
    Posts
    282
    Code:
    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 Cprogramming.com
    Replies: 87
    Last Post: 05-17-2005, 02:18 AM
  2. Love - learned or inherent?
    By axon in forum A Brief History of Cprogramming.com
    Replies: 42
    Last Post: 01-24-2005, 12:09 PM
  3. "if you love someone" :D
    By Carlos in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-02-2003, 02: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 Cprogramming.com
    Replies: 29
    Last Post: 05-21-2003, 08:48 AM
  5. i love atmel
    By ehsiq in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 09-19-2001, 12:06 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21