{"id":123,"date":"2018-02-26T21:08:35","date_gmt":"2018-02-27T02:08:35","guid":{"rendered":"http:\/\/www.news.silkrooster.com\/?page_id=123"},"modified":"2018-02-26T21:08:35","modified_gmt":"2018-02-27T02:08:35","slug":"language-c-net-v-4-0-runtime-required","status":"publish","type":"page","link":"http:\/\/www.news.silkrooster.com\/?page_id=123","title":{"rendered":"Language C++, .net v.4.0 runtime required."},"content":{"rendered":"<h2><\/h2>\n<p>\/\/ multiplication table &#8211; C++ CRL version.cpp : main project file.<\/p>\n<p>#include &#8220;stdafx.h&#8221;\/\/ Only 1 header file is required for this code.<\/p>\n<p>using namespace System;\/\/ This time we are including the namespace System so we don&#8217;t have to type it.<\/p>\n<p>int main(array ^args)\/\/The start of the code<br \/>\n{<br \/>\nint row = 0;\/\/ The first variable called row with a value of 0<br \/>\nint column = 0;\/\/Second variable called column with a value of 0<br \/>\nConsole::WriteLine(L&#8221;\\t\\t\\tMultiplication Table\\n\\n\\n&#8221;);\/\/we are outputting to the screen via .net framework WriteLine will create a newline<br \/>\nConsole::Write (&#8221; &#8220;);\/\/Write outputs without a newline character<br \/>\nfor (row = 1; row !=11; row++)\/\/The first loop, this will create 1 through 10 across the top of the screen<br \/>\n{<br \/>\nConsole::Write (&#8220;{0,5}&#8221;, row);\/\/First number represents &#8220;row&#8221; and the second number specifies the width.<br \/>\n}<\/p>\n<p>Console::Write (&#8220;\\n &#8220;);\/\/Used Write to introduce spacing after a newline.<br \/>\nfor (row = 1; row !=11; row++)\/\/This loop draws a line under the numbers<br \/>\n{<br \/>\nConsole::Write (&#8220;_____&#8221;);<br \/>\n}<\/p>\n<p>for (row = 1; row != 11; row++)\/\/This outer loop creates the far left number that will run down the screen<br \/>\n{<br \/>\nConsole::Write (&#8220;\\n\\n{0,3} |&#8221;, row);\/\/ outputting two newline characters the number with width of 3 and a | character for a divider line<\/p>\n<p>for (column = 1; column != 11; column++)\/\/This inner loop create the table<br \/>\n{<br \/>\nConsole::Write (&#8220;{0,5}&#8221;, column*row);\/\/here we put the multiple of &#8220;column&#8221; and &#8220;row&#8221; with a width of 5<br \/>\n}<br \/>\n}<br \/>\nConsole::WriteLine(&#8220;\\n\\nHit Enter key to quit&#8230;&#8221;);<br \/>\nConsole::ReadLine();\/\/keeps the screen visible until the enter key is hit.<br \/>\nreturn 0;<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/\/ multiplication table &#8211; C++ CRL version.cpp : main project file. #include &#8220;stdafx.h&#8221;\/\/ Only 1 header file is required for this code. using namespace System;\/\/ This time we are including the namespace System so we don&#8217;t have to type it. &hellip; <a href=\"http:\/\/www.news.silkrooster.com\/?page_id=123\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-123","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":1,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/123\/revisions"}],"predecessor-version":[{"id":124,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/123\/revisions\/124"}],"wp:attachment":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}