Thursday, 28 March 2013

SetBit  function that  sets the bit of a given integer by doing a bitwise OR and using left shift

void SetBit(unsigned int& v, int bitNo, bool val){
       if(val == true){
          v = (1<<(bitNo - 1) | v;
               v = ~(1<<(bitNo-1)) & v;


Wednesday, 27 February 2013

As usual was browsing Google+ "whats hot" section and I find an interesting link shared by +Misko Hevery. A lot of students have problem getting to know Github, and this tutorial surely does the job on providing the user an interactive experience in learning Github. Check for yourself! (

Tuesday, 8 January 2013

Hi there! Created this blog for my Object Oriented Programming course at Seneca College.  Hope to post some interesting articles on C++ and much more during my course period.