fév 19

Love Code …

Ore: 01:47 - Tags: Funny,Geek,Perso,Software

With all the Valentine’s Day and love floating around me these day, I felt like expressing it in all my geekiness. So, tonight I wrote a simple C++ code to express how I feel about a very special someone.

Damn theme … I don’t know how to make code appear correctly … I mean with proper indentation!

EDIT: Haaaa… I found a very nice wordpress plugin to help me :)

#include <iostream>

#define END_OF_LIFE 80*365    // 80 years in days

int main (int argc, char * const argv[]) {

	int dayPassedTogether;
	double love = 1;

	for(dayPassedTogether = 1; dayPassedTogether <= END_OF_LIFE; dayPassedTogether++) {
		printf("Each day my love for you is incremented : %0.f\n",love);
		love += love;
		love++;
	}

    return 0;
}


Comments: 2

2 Comments so far

  1. Pier-Luc Caron St-Pierre février 19th, 2009 21:30

    You can know how much time it left to your life at http://www.deathclock.com/ :)

  2. LaMs février 20th, 2009 10:07

    Hehe interesting :)
    Base on that I’ll die in 2057 … which is 74 years old! Damn, I’ll have to modify my #define !!!

Leave a comment