Page 3 of 6

Re: Birthdays

PostPosted: 15 Mar 2015, 08:15
by Metalor
Indeed, Happy Spirit Journey Formation Anniversary Linuxwolf! Your coding talents give individuals like myself something to look up to. Batman: No Man's Land was a fine feat of Wolf-engineering.

Re: Birthdays

PostPosted: 15 Mar 2015, 08:20
by Dean
Happy Birthday LinuxWolf! Have a frothy or 2 on me!! :D :beer:

Re: Birthdays

PostPosted: 15 Mar 2015, 09:42
by linuxwolf
Thanks everyone! :friends:

Re: Birthdays

PostPosted: 14 Mar 2016, 13:08
by DoomJedi
Code: Select all
#include <BirthdayCake.h>

int main(Congratulations)
{
  int i;
  for(LinuxWolf; i <= 34; i++)
  {
     printf("%d ", "Happy Birthday!!!");
  }
  for(i=1; i <= 34; i++)
  {
     printf("%d ", Best wishes, health, happiness, love and career success!);
  }
  return 0;
}


Image

Re: Birthdays

PostPosted: 14 Mar 2016, 19:10
by Ron
Happy birthday! :)

Re: Birthdays

PostPosted: 14 Mar 2016, 22:53
by linuxwolf
Thanks guys!! :D >--I

Nice Birthday programming Jedi. :wink:

Re: Birthdays

PostPosted: 14 Mar 2016, 23:01
by DoomJedi
You're welcome, pal :D :D :D

Re: Birthdays

PostPosted: 15 Mar 2016, 11:56
by linuxwolf
:D

Code: Select all
#include <algorithm>
#include <iostream>
#include <vector>

namespace Sfx
{
   enum e
   {
      extinguished,
      blow,
   };

   void play(enum e x)
   {
      std::cout << "sound effect: " << x << std::endl;
   }
};

class Candle
{
public:
   typedef std::vector<Candle> Vec;

   bool burning;

   Candle() : burning(true)
   {
   }

   void extinguish(void)
   {
      if (burning)
      {
         Sfx::play(Sfx::extinguished);
         burning = false;
      }
   }
};

typedef Candle::Vec Cake;

void extinguishCandle(Candle &candle)
{
   candle.extinguish();
}

class LinuxWolf
{
public:
   int age;

   LinuxWolf() : age(34)
   {
   }

   void blow(Cake &cake)
   {
      Sfx::play(Sfx::blow);
      std::for_each(cake.begin(), cake.end(), extinguishCandle);
   }
};

int main(int argc, char **argv)
{
   LinuxWolf linuxWolf;

   Cake cake(linuxWolf.age);

   linuxWolf.blow(cake);

   const std::string s("I'm glad you handled the candles");
   return std::accumulate(s.begin(), s.end(), 0);
}

Re: Birthdays

PostPosted: 15 Mar 2016, 12:13
by DoomJedi
Return "I'm glad you handled the candles" :)

Re: Birthdays

PostPosted: 23 May 2016, 08:37
by DoomJedi
Happy Birthday, pwojo588 ! }8O--
>--I >--I

Re: Birthdays

PostPosted: 24 May 2016, 12:15
by Officer-Michael John
Happy birthday retrospectively pwojo88!

Re: Birthdays

PostPosted: 22 Nov 2016, 15:48
by Atina
Happy Birthday DoomJedi ! ^^ Image

Re: Birthdays

PostPosted: 22 Nov 2016, 18:23
by DoomJedi
Thank you :)
:beer:

(I--I) >0<

Re: Birthdays

PostPosted: 23 Nov 2016, 15:09
by Officer-Michael John
Happy Brithday later too DoomJedi! :)

Re: Birthdays

PostPosted: 24 Nov 2016, 09:43
by DoomJedi
Thank you :)