Lucky.cpp

Never get the lyrics wrong to Daft Punk’s Get Lucky ever again with just a few lines of code…

#include <iostream>
using namespace std;
int main()
{
   string pronoun[3] = { "She's", "I'm", "We're" };
   string endline[4] = { "'til the sun", "to get some", "for good fun", "to get lucky" };

   for(int i = 0; i < 12; i++)
   {
      cout << pronoun[i < 4 ? i % 2 : 2] << " up all night " << endline[i < 8 ? i % 4 : 3] << endl;
      if(i % 4 == 3) cout << endl;
      usleep(2100000);
   }
}

One thought on “Lucky.cpp”

  1. I think you think I am cool … at least I got a mention …. love you to bits too xx mum

Comments are closed.