Penguin

Differences between version 15 and previous revision of HelloWorld.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 15 Last edited on Sunday, March 7, 2004 5:01:16 pm by CraigBox Revert
Older page: version 10 Last edited on Saturday, January 25, 2003 12:05:43 am by BartvanDeventer Revert
@@ -1,8 +1,8 @@
 ![HelloWorld] 
 This is the default introductory program to a new programming or scripting language. The main purpose and goal of the program is to display the text string "Hello World\n" to the standard output stream ([stdout(3)]). 
  
-Some examples in different ProgrammingLanguages
+Some examples in different [ProgrammingLanguage]s
  
 [BASIC] 
  PRINT "Hello World\n" 
  
@@ -17,8 +17,33 @@
  #include <iostream> 
  void main(){ 
  std::cout << "Hello World" << endl; 
 
+  
+[COBOL]  
+  
+''I'm not sure how much of this is serious or facetious...''  
+ 000100 IDENTIFICATION DIVISION.  
+ 000200 PROGRAM-ID. HELLOWORLD.  
+ 000300 DATE-WRITTEN. 02/05/96 21:04.  
+ 000400* AUTHOR BRIAN COLLINS  
+ 000500 ENVIRONMENT DIVISION.  
+ 000600 CONFIGURATION SECTION.  
+ 000700 SOURCE-COMPUTER. RM-COBOL.  
+ 000800 OBJECT-COMPUTER. RM-COBOL.  
+ 000900  
+ 001000 DATA DIVISION.  
+ 001100 FILE SECTION.  
+ 001200  
+ 100000 PROCEDURE DIVISION.  
+ 100100  
+ 100200 MAIN-LOGIC SECTION.  
+ 100300 BEGIN.  
+ 100400 DISPLAY " " LINE 1 POSITION 1 ERASE EOS.  
+ 100500 DISPLAY "HELLO, WORLD." LINE 15 POSITION 10.  
+ 100600 STOP RUN.  
+ 100700 MAIN-LOGIC-EXIT.  
+ 100800 EXIT.  
  
 Linux x86 AssemblyLanguage 
  .data 
  .align 4 
@@ -40,13 +65,15 @@
  int $0x80 
  
 [Perl]: 
  print join('', pack("V4", (0x6c6c6548,0x6f77206f,0xa646c72))); 
+''Sorry, someone is being facetious. Of course, it's:''  
+ print "Hello World\n";  
  
 [Python]: 
  print "Hello World" 
  
-[ UserRPL]
+UserRPL (for the HP48 Calculator)
  << "Hello World" MSGBOX >> 
  
 Well yeah, I could go on and on for different programming languages but there would be too many to list here[1]. 
  
@@ -54,9 +81,9 @@
 ---- 
 Also see PolyGlot 
 ---- 
  
-Up there you see the problem with Hello World; most Hello Worlds look exactly like the Python one. It's not really meant as a sample program. What you learn from creating a Hello World program is how to use the language tools: it's a first exercise in entering, compiling and running a program on a paticular system, and it might make you go find the documentation on the I/O library in some cases. [99 Bottles of Beer on the Wall | http://99-bottles-of-beer.ls-la.net/] is slightly better for demonstrating the look of a language, [Ward Number |http ://c2.com/cgi-bin/wiki?WardNumberInManyProgrammingLanguages] a lot better. 
+Up there you see the problem with Hello World; most Hello Worlds look exactly like the Python one. It's not really meant as a sample program. What you learn from creating a Hello World program is how to use the language tools: it's a first exercise in entering, compiling and running a program on a paticular system, and it might make you go find the documentation on the I/O library in some cases. [99 Bottles of Beer on the Wall | http://99-bottles-of-beer.ls-la.net/] is slightly better for demonstrating the look of a language, PPR :WardNumber a lot better. 
  
 -- GlynWebster 
  
 ---- 
@@ -65,5 +92,6 @@
  
 [1] In fact there are hundreds of programming languages. [2] 
 [2] Thousands. (You haven't written your own yet? :-) [3] 
 [3] I'm on my third at the moment.. >:-)[4] 
-[4] Footnote or programming language? 
+[4] Footnote or programming language?[5]  
+[5] Both :)