• View unanswered postsView active topics

  • Birthdays

    All the rest (non-gaming) topics

    Postby linuxwolf 14 Mar 2016, 22:53

    Thanks guys!! :D >--I

    Nice Birthday programming Jedi. :wink:
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5675
    Location: Australia

        

    Postby DoomJedi 14 Mar 2016, 23:01

    You're welcome, pal :D :D :D
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 14051
    Location: Israel

        

    Postby linuxwolf 15 Mar 2016, 11:56

    :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);
    }
    linuxwolf
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 5675
    Location: Australia

        

    Postby DoomJedi 15 Mar 2016, 12:13

    Return "I'm glad you handled the candles" :)
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 14051
    Location: Israel

        

    Postby DoomJedi 23 May 2016, 08:37

    Happy Birthday, pwojo588 ! }8O--
    >--I >--I
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 14051
    Location: Israel

        

    Postby Officer-Michael John 24 May 2016, 12:15

    Happy birthday retrospectively pwojo88!
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby Atina 22 Nov 2016, 15:48

    Happy Birthday DoomJedi ! ^^ Image
    Atina

     
    Posts: 206

       

    Postby DoomJedi 22 Nov 2016, 18:23

    Thank you :)
    :beer:

    (I--I) >0<
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 14051
    Location: Israel

        

    Postby Officer-Michael John 23 Nov 2016, 15:09

    Happy Brithday later too DoomJedi! :)
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    The following user would like to thank Officer-Michael John for this post
    DoomJedi

    Postby DoomJedi 24 Nov 2016, 09:43

    Thank you :)
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 14051
    Location: Israel

        

    Postby Officer-Michael John 25 Nov 2016, 00:00

    You‘re welcome! :)
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby Lozer_42 28 Nov 2016, 23:06

    a happy birthday to WLHack
    Lozer_42
    User avatar
    Team RayCast member
    Team RayCast member
     
    Posts: 1506
    Location: Grand Rapids, Michigan

      

    Postby Officer-Michael John 29 Nov 2016, 10:16

    Happy Brithday later too WLHack! :)
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby Officer-Michael John 30 Nov 2016, 18:55

    Happy Brithday Thomas Weiling (Wolfer King) and OMJ (Me)!
    Officer-Michael John
    User avatar

     
    Posts: 185
    Location: Hungary

        

    Postby DoomJedi 14 Mar 2017, 09:22

    Happy Birthday LinuxWolf :)
    :beer: :beer: :beer:

    Best coder in the whoooooole world *comp*
    Best wishes, health, career, love, happyness...and alot of great mods :)
    DoomJedi
    User avatar
    Administrator
    Administrator
     
    Posts: 14051
    Location: Israel

        

    PreviousNext

    Return to General topics


    Who is online

    Users browsing this forum: No registered users and 1 guest

    cron