tag:blogger.com,1999:blog-109649903494122122023-11-15T11:14:05.028-08:00Mohammed OOP344Anonymoushttp://www.blogger.com/profile/17627605113536511098noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-10964990349412212.post-32657221922147308982013-03-28T09:29:00.000-07:002013-03-28T09:29:35.528-07:00<div dir="ltr" style="text-align: left;" trbidi="on">
<u><b>SetBit function that sets the bit of a given integer by doing a bitwise OR and using left shift</b></u><br />
<br />
void SetBit<u><b>(</b></u>unsigned int& v, int bitNo, bool val){<br />
<br />
if(val == true){<br />
v = (1<<(bitNo - 1) | v;<br />
}<br />
else{<br />
v = ~(1<<(bitNo-1)) & v;<br />
}<br />
}<br />
<br />
</div>
Anonymoushttp://www.blogger.com/profile/17627605113536511098noreply@blogger.com0tag:blogger.com,1999:blog-10964990349412212.post-22122702797752435542013-02-27T18:03:00.001-08:002013-02-27T18:03:38.231-08:00<div dir="ltr" style="text-align: left;" trbidi="on">
As usual was browsing Google+ "whats hot" section and I find an interesting link shared by <a class="g-profile" href="http://plus.google.com/111556871137251049765" target="_blank">+Misko Hevery</a>. 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! (<a href="http://pcottle.github.com/learnGitBranching/">http://pcottle.github.com/learnGitBranching/</a>)</div>
Anonymoushttp://www.blogger.com/profile/17627605113536511098noreply@blogger.com0tag:blogger.com,1999:blog-10964990349412212.post-56681235773766494872013-01-08T09:56:00.001-08:002013-01-08T09:56:27.686-08:00<div dir="ltr" style="text-align: left;" trbidi="on">
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. </div>
Anonymoushttp://www.blogger.com/profile/17627605113536511098noreply@blogger.com0