{"id":1,"date":"2011-02-19T23:43:22","date_gmt":"2011-02-20T06:43:22","guid":{"rendered":"http:\/\/localhost:8080\/~andrew\/?p=1"},"modified":"2020-02-19T15:25:01","modified_gmt":"2020-02-19T22:25:01","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/cs.kingsu.ca\/~andrew\/programming\/hello-world\/","title":{"rendered":"Hello world!"},"content":{"rendered":"<p><strong>c<\/strong><\/p>\n<pre lang=\"c\" line=\"1\">#include <stdio.h>\n\nint main() {\n  printf(\"Hello world!\\n\");\n\n  return 0;\n}<\/pre>\n<p><strong>c++<\/strong><\/p>\n<pre lang=\"C\" line=\"1\">#include <iostream>\n\nint main() {\n  std::cout << \"Hello world!\"<< std::endl;\n\n  return 0;\n}<\/pre>\n<p><strong>bash<\/strong><\/p>\n<pre lang=\"bash\" line=\"1\">#!\/bin\/bash\necho \"Hello world!\"<\/pre>\n<p><strong>ruby<\/strong><\/p>\n<pre lang=\"ruby\" line=\"1\">puts(\"Hello world!\")<\/pre>\n<p><strong>javascript<\/strong> <em>(courtesy of <a href=\"http:\/\/ironiccatfish.com\/\">Theo Keeler<\/a>)<\/em><\/p>\n<pre lang=\"javascript\" line=\"1\"><script type=\"text\/javascript\">\/\/ <![CDATA[\ndocument.write(\u201cHello World!\u201d);\n\/\/ ]]><\/script><\/pre>\n<p><strong>php<\/strong> <em>(courtesy of <a href=\"http:\/\/ironiccatfish.com\/\">Theo Keeler<\/a>)<\/em><\/p>\n<pre lang=\"php\" line=\"1\"><!--?php echo \u201cHello World!\u201d; ?--><\/pre>\n<p><strong>python<\/strong> <em>(courtesy of DJ)<\/em><\/p>\n<pre lang=\"python\" line=\"1\">print(\u201cHello World!\u201d)<\/pre>\n<p><strong>java<\/strong> <em>(courtesy of DJ)<\/em><\/p>\n<pre lang=\"java\" line=\"1\">public class HelloWorld {\n  public static void main(String[] args) {\n    System.out.println(\u201cHello World!\u201d);\n  }\n}<\/pre>\n<p><strong>windows batch<\/strong> <em>(courtesy of Wendell)<\/em><\/p>\n<pre lang=\"winbatch\" line=\"1\">@echo off\necho Hello World!<\/pre>\n<p><strong>Racket\/Scheme<\/strong> <em>(courtesy of DJ)<\/em><\/p>\n<pre lang=\"scheme\" line=\"1\">#lang racket \n(display \"Hello World!\")<\/pre>\n<p><strong>C#<\/strong> <em>(courtesy of DJ)<\/em><\/p>\n<pre lang=\"C\" line=\"1\">public class HelloWorld {\n  public static void Main(string[] args) {\n    System.Console.WriteLine(\"Hello world!\");\n  }\n}<\/pre>\n<p><strong>Latex<\/strong> <em>(courtesy of Rob)<\/em><\/p>\n<pre lang=\"Latex\" line=\"1\">\\documentclass{article}\n\\begin{document}\nHello, world!\n\\end{document}<\/pre>\n<p>Help me make the <em>definitive<\/em> list \u2014 leave me your \"Hello World!\" program from your favorite programming language!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>c #include int main() { printf(&#8220;Hello world!\\n&#8221;); return 0; } c++ #include int main() { std::cout<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":45,"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":680,"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/posts\/1\/revisions\/680"}],"wp:attachment":[{"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cs.kingsu.ca\/~andrew\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}