{"id":589,"date":"2013-08-02T02:22:22","date_gmt":"2013-08-02T09:22:22","guid":{"rendered":"https:\/\/unclogged.rl-imaging.com\/?p=589"},"modified":"2013-08-02T03:54:00","modified_gmt":"2013-08-02T10:54:00","slug":"zero-hour-s01e11-the-hand","status":"publish","type":"post","link":"https:\/\/unclogged.rl-imaging.com\/?p=589","title":{"rendered":"Zero Hour &#8211; S01E11 &#8211; The Hand"},"content":{"rendered":"<p>Yay, more code! If you split the view four ways and scroll each a little differently, it looks a lot more impressive. Source is:\u00a0<a href=\"http:\/\/www.csee.wvu.edu\/~cukic\/CS350\/Spring98\/C_Ch10.txt\">http:\/\/www.csee.wvu.edu\/~cukic\/CS350\/Spring98\/C_Ch10.txt<\/a><\/p>\n<p><span style=\"line-height: 1.714285714; font-size: 1rem;\">They C++-ified the code (ie, cout instead of printf). See leftmost pane in screenshot:<\/span><\/p>\n<pre>main()\r\n{\r\n   unsigned number1 = 960;\r\n\r\n   printf(\"\\nThe result of left shifting\\n\");\r\n   displayBits(number1);\r\n   printf(\"8 bit positions using the \");\r\n   printf(\"left shift operator &lt;&lt; is\\n\");\r\n   displayBits(number1 &lt;&lt; 8);\r\n\r\n   printf(\"\\nThe result of right shifting\\n\");\r\n   displayBits(number1);\r\n   printf(\"8 bit positions using the \");\r\n   printf(\"right shift operator &gt;&gt; is\\n\");\r\n   displayBits(number1 &gt;&gt; 8);\r\n   return 0;\r\n}<\/pre>\n<p><a href=\"https:\/\/unclogged.rl-imaging.com\/wp-content\/uploads\/2013\/08\/Screen-Shot-2013-08-01-at-22.40.43-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-590\" alt=\"Screen Shot 2013-08-01 at 22.40.43\" src=\"https:\/\/unclogged.rl-imaging.com\/wp-content\/uploads\/2013\/08\/Screen-Shot-2013-08-01-at-22.40.43--1024x612.png\" width=\"625\" height=\"373\" srcset=\"https:\/\/unclogged.rl-imaging.com\/wp-content\/uploads\/2013\/08\/Screen-Shot-2013-08-01-at-22.40.43--1024x612.png 1024w, https:\/\/unclogged.rl-imaging.com\/wp-content\/uploads\/2013\/08\/Screen-Shot-2013-08-01-at-22.40.43--300x179.png 300w, https:\/\/unclogged.rl-imaging.com\/wp-content\/uploads\/2013\/08\/Screen-Shot-2013-08-01-at-22.40.43--624x373.png 624w, https:\/\/unclogged.rl-imaging.com\/wp-content\/uploads\/2013\/08\/Screen-Shot-2013-08-01-at-22.40.43-.png 2034w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yay, more code! If you split the view four ways and scroll each a little differently, it looks a lot more impressive. Source is:\u00a0http:\/\/www.csee.wvu.edu\/~cukic\/CS350\/Spring98\/C_Ch10.txt They C++-ified the code (ie, cout instead of printf). See leftmost pane in screenshot: main() { unsigned number1 = 960; printf(&#8220;\\nThe result of left shifting\\n&#8221;); displayBits(number1); printf(&#8220;8 bit positions using the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[11,17,10],"class_list":["post-589","post","type-post","status-publish","format-standard","hentry","category-images","tag-code","tag-computer","tag-tv"],"_links":{"self":[{"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=\/wp\/v2\/posts\/589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=589"}],"version-history":[{"count":3,"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=\/wp\/v2\/posts\/589\/revisions"}],"predecessor-version":[{"id":593,"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=\/wp\/v2\/posts\/589\/revisions\/593"}],"wp:attachment":[{"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=589"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=589"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unclogged.rl-imaging.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}