Monthly Archives: November 2005

repost : Basic Computer Programming for Today’s Politicians

Here’s a basic computer program for the politicians of today, expressed in different computer languages:

C Language
#include
int main()
{
   printf("Hello, Garci!\n");
   return 0;
}

C++
#include
using namespace std;
int main()
{
   cout << "Hello, Garci!" << endl;
   return 0;
}

C#
public class WireTapGate
{
   public static void Main()
   {
      System.Console.WriteLine("Hello, Garci!");
   }
}

Pascal
program WireTapGate;

begin
  writeln(‘Hello, Garci!’);
end.

Java
 import java.awt.*;
 public class WireTapGate
 {
      public static void main(String[] args)
      {
         System.out.println("Hello, Garci!");
      }
 }

Perl
#!/usr/bin/perl
use strict;
use warnings;
my %hash = (wiretapgate => ‘Hello, Garci!’);
my $stmt = $hash{wiretapgate};
print "$stmt\n";

Visual Basic
Option Explicit
Public Sub Form1_Load()

    MsgBox "Hello, Garci!"

End Sub

Visual Basic .NET
Imports System
Module WireTapGate
   Sub Main()
       Console.WriteLine("Hello, Garci!")
   End Sub
End Module

ASP
<%
     Response.Write "Hello, Garci!
"
%>

PHP
     echo "Hello, Garci!
";
?>

SQL
SELECT ‘Hello, Garci!’ AS WireTapGate;

JavaScript

Windows API
#include
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
  MessageBox(NULL, "Hello, Garci!", "Message", MB_OK);
  return 0;
}

*nix Shell Script
#!/bin/sh
WIRETAPGATE="Hello, Garci!"
echo $WIRETAPGATE

x86 Assembler
.model small
.stack
.data
message   db "Hello, Garci!", 0D, 0A, "$"
.code

main   proc
   mov   ax,seg message
   mov   ds,ax
   mov   ah,09
   lea   dx,message
   int   21h

   mov   ax,4c00h
   int   21h
main   endp
end main

Markup Languages

HTML

   
Wiretapgate


Hello, Garci!

XML


    Hello, Garci!