你知道多少种编程语言?也许是java、python、C、C++,或是html,vbs,bat,C#,ruby,今天,你将会见识到这202种或是你熟知的,又或是你不熟知的编程语言。用它们输出hello world,会是什么样呢?
CGI in c语言:
#include <stdio.h>
main ()
{
printf ("Content-type: text/html\n");
printf ("\n");
printf ("<html>\n");
printf ("<head>\n");
printf ("<title>Hello, world!</title>\n");
printf ("</head>\n");
printf ("\n");
printf ("<body>\n");
printf ("<h1>Hello, world!</h1>\n");
printf ("</body>\n");
printf ("</html>\n");
}
CLIPS语言:
(deffacts facts (a))
(defrule rule1 "Hello World"
?a<-(a)
=>
(retract ?a)
(printout t "Hello World" crlf)
(assert (a))
)