CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: About life..

  1. #1
    Join Date
    Jan 2011
    Posts
    0

    About life..

    Code:
    //life.cpp
    //Author: Karlis Lapins
    //Created: 19.01.2011.
    //Version: 1.0
    //Description: About life. Not necessarily for compiling.
    
    
    #include <cstdlib> 
    #include <iostream>
    
    using namespace std;
    
    class Human
    {
    	public:
            bool bIdentify_with_past;
    		bool bConsciousness_released;
    		char cHad_enough;
    		bool bRealize_you_are_not_your_mind;
    		bool bSurrender_to_the_present_moment;
    		int iMoment;
    		Human() // constructor
    		{
    			bIdentify_with_past = true;
    			bConsciousness_released = false;
    			cHad_enough = 'n';
    			bRealize_you_are_not_your_mind = false;
    			bSurrender_to_the_present_moment = false;
    			iMoment = 0;
    		}
    };
    
    // While not being enlightened.
    void being_very_very_busy (int iThings_to_do)
    {
    	bool * aThis_and_that = new bool [iThings_to_do];
    	bool bBeing_done = true;
    	for (int i = 0; i < iThings_to_do; i++)
    	{
    		aThis_and_that[i] = bBeing_done;
    	}
    } // being_very_very_busy
    
    // When being enlightened.
    void enjoy_every_moment_of_life()
    {
        cout << "Life!!! :)";
    	bool bBreathing_input_output = true;
    	bool bBeing_truly_happy_and_feeling_grateful_comma_content;
    	int iMake_the_world_better; // The data type of this variable is discussable.
    	while (bBreathing_input_output)
    	{
    		bBeing_truly_happy_and_feeling_grateful_comma_content = true;
    		iMake_the_world_better++;
    	}
    } // enjoy_every_moment_of_life
    	
    int main()
    {
    	Human h; // New human being.
    	int iThings_to_do;
    	while (h.bIdentify_with_past)
    	{
    		iThings_to_do = rand(); // Random number of things to do.
    		h.iMoment = h.iMoment + 1;
    		being_very_very_busy(iThings_to_do);
    		cout << "Had enough? (y/n): ";
    		cin >> h.cHad_enough;
    		if (h.cHad_enough == 'y')
    		{
    			h.bSurrender_to_the_present_moment = true;
    			h.bRealize_you_are_not_your_mind = true;
    			if (h.bSurrender_to_the_present_moment && h.bRealize_you_are_not_your_mind) 
    			{
    				h.bConsciousness_released = true;
    				break;
    			}
    		}
    	}
    	if (h.bConsciousness_released)
    	{
    		enjoy_every_moment_of_life();
    	}
    	return 0;
    } // main
    Last edited by cilu; January 20th, 2011 at 01:55 AM.

  2. #2
    Join Date
    Jan 2011
    Location
    Richmond, Va
    Posts
    32

    Re: About life..

    lol this is corny.

  3. #3
    Join Date
    Jul 2010
    Posts
    37

    Re: About life..

    Didn't use code tags.









Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured