fév 19
Love Code …
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
You can know how much time it left to your life at http://www.deathclock.com/
Hehe interesting
Base on that I’ll die in 2057 … which is 74 years old! Damn, I’ll have to modify my #define !!!