[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] Humour :"Hello World"



On Wed, Oct 06, 1999 at 09:59:04AM +0200, Pascal A. Dupuis wrote:
> On Tue, 5 Oct 1999, Damien Cornet wrote:
> > Enoncé : Le but de la manipulation est d'écrire un programme qui
> > affichera "HELLO WORLD" à l'écran.
> Dinosaure atypique :
> 	echo | awk '{print "HELLO WORLD";}'
Sans "echo" quand même :)

> Il manque dans la liste :
> -programme sous Win32 
alors là, tu n'espères quand même pas que je vais vendre mon âme
juste pour faire un hello world ;-)

> -Java
public class HelloWorld extends Object {
	private static final String helloWorld="Hello World!";

	public static void main(String[] args) {
		System.out.println(helloWorld);
	}
}

Notez que j'ai rallongé un peu (extends Object et la constante) ;-)

Ou bien p'têt une version AWT ? :-)

import java.awt.*;

public class HelloWorld {
	private final String helloWorld="Hello World!";
	private Frame frame;

	public HelloWorld() {
		frame = new Frame(helloWorld);
		frame.setLayout(new GridLayout());
		frame.setSize(200, 200);
...
et puis non, c'est trop ch.... ;-)

> -python
#!/usr/bin/python
print "Hello World\n"

> -perl
#!/usr/bin/perl
print "Hello World\n";
1;

bah, trop facile ;-)

Hmm... qqn pourrait le faire en TCL ?

A part ça...
qqn sait faire du LISP ? :-))

-- 
  -o)  Pascal Bleser        | Those who  do  not  understand
  /\\  C++/UNIX Development | Unix are condemned to reinvent
 _\_v  ATOS Payment Systems | it, poorly.
       Aachen, Germany      | --Henry Spencer {fortune}
<pbleser@atos-group.com>------------------<guru@linuxbe.org>

---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.