{"id":97,"date":"2017-07-01T00:12:44","date_gmt":"2017-07-01T04:12:44","guid":{"rendered":"http:\/\/www.news.silkrooster.com\/?page_id=97"},"modified":"2019-02-25T19:37:52","modified_gmt":"2019-02-26T00:37:52","slug":"coding","status":"publish","type":"page","link":"http:\/\/www.news.silkrooster.com\/?page_id=97","title":{"rendered":"Multiplication Table Example"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Simple example using different languages to accomplish the same thing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(Note: Display (formatting) may vary depending on the language, but the results will be the same)<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">I am going to start by showing source code for multiple languages to create a multiplication table.&nbsp; The point of this exercise, is to show the differences between various languages and how to do basic input\/output, loops, variables, screen formatting.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will be a Work In Progress, so I will be updating this post, to add additional languages and fix any minor glitches.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First we will look at C++ Just click the link below to navigate to that page to see the code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.news.silkrooster.com\/?page_id=119\">Language C++ ; No runtime required<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.news.silkrooster.com\/?page_id=123\">Language C++, .net v.4.0 runtime required.<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Now we will look at C#. Since C# requires the .net runtime, there will be only one example.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.news.silkrooster.com\/?page_id=126\">Language C#, .net v.4.0 runtime required.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see the C# and C++ CRL versions are extremely similar. This has to do with both using the .net library\/class. The main difference you will see is how each language refers to its members. In C++ Two : are used where as in C# a single . is used. Also C# does not have to include any files, as it assumes you will be using the .net library\/class.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Visual Basic also requires the .net runtime. However because of how the language was created, it does not require you to specify the runtime.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.news.silkrooster.com\/?page_id=130\">Visual Basic<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">The above languages require compiling. Whereas the following languages do not, so they are called scripting languages.<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The first language JavaScript will be run in a web browser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.news.silkrooster.com\/?page_id=134\">JavaScript (web browser)<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This next language is Powershell a Scripting language for accessing the .net library in Microsoft Windows. I added this language as parts of it have become open sourced and is being ported to other operating systems. (Or that is the plan the last I heard)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/www.news.silkrooster.com\/?page_id=181\">Microsoft Powershell<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Simple example using different languages to accomplish the same thing. (Note: Display (formatting) may vary depending on the language, but the results will be the same) I am going to start by showing source code for multiple languages to create &hellip; <a href=\"http:\/\/www.news.silkrooster.com\/?page_id=97\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":164,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-97","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/97","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=97"}],"version-history":[{"count":10,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/97\/revisions"}],"predecessor-version":[{"id":219,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/97\/revisions\/219"}],"up":[{"embeddable":true,"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=\/wp\/v2\/pages\/164"}],"wp:attachment":[{"href":"http:\/\/www.news.silkrooster.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=97"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}