Select this to skip to main content [CSUSB] >> [CNS] >> [Comp Sci Dept] >> [R J Botting] >> [CS320 Course Materials] >> [Sebesta] >> [Source]
[Index] [Schedule] [Syllabi] [Text] [Labs] [Projects] [Resources] [Search] [Grading]
Mon Mar 29 17:30:12 PST 2004
. History

. Don't Panic!
(1) We will return to parts of this chapter before doing
	any programming in the languages.

(2) Everybody needs to get an over all feel for the history of
	languages rather than memorize lots of details.

(3) Some people can and will get fascinated by the "Trivia".

(4)  We may not use a language in this class... but I expect you
	you to know where it fits into the history any way.

(5) Take note of the diagrams, the dates, and the people involved.

(6) Try to imagine yourself taking part in the events described.
	(You will be taking part in future language developments!)

(7) This chapter introduces many new terms.  If you can not find their
	meaning in the text then follow this link
	http://www.csci.csusb.edu/dick/cs320/lookup.php
	and enter the word into the form to search my repository of terms
	for CS320.
. Simple "Hello World" Programs
 BASIC
	10 PRINT "Hello, World!"

 C++
	#include <iostream>
	main(){cout<<"Hello, World!";}

 prolog
	hello:-print('Hello, World!').

 LISP
	(defun hello() "Hello, World!")

 C
	main(){printf("Hello, World!");}

 Scheme
	(define (hello) "Hello, World!")

 Pascal
	program hello(input,output) begin writeln('hello') end.

 Ada
	with Text_io; Use Text_io;
	procedure HELLO is begin	
		Put("Hello, World!"); new_line;
	end HELLO;

 Java   
	import java.lang.*;
        class Hello {
            public static void main(String argv[]){
                System.out.println("Hello, World!");
            }
        }
	
Notice:  In a functional PL like LISP you define a function, but
in a object-oriented PL you declare a class.  In a Logic PL
like Prolog you define a predicate that has to be called before
it does anything.

For more "Hello, World!" programs see
	http://www.uni-karlsruhe.de/~uu9r/lang/html/lang.en.html