trace("Hello, world!");
Sunday, 2 October 2011
Action Hello World Code Example
; Hello world in Action! programming language for the Atari 8-Bit computers
PROC Main()
PrintE("Hello World!")
RETURN
A++ Hello World Example
#include <A++.h> // this is included in every A++/P++ application
int main(int argc,char** argv)
{
// We are instancing the doubleArray object. Though it looks like a
// standard Fortran array, it's not
doubleArray A(10);
doubleArray B(10);
// Initialize A and B
A=2;
B=3;
Illustration of the methods associated with doubleArray Objects
``display'' is used to show the values of the Object
A.display(``This is the doubleArray Object A'');
B.display(``This is the doubleArray Object B'')
// We can add to array objects with the ``+'' operator
A=A+B;
A.display(``Addition of A and B'');
}
A# .Net Hello World Example
with Ada.Text_IO; use Ada.Text_IO; procedure Hello_Dotnet is begin Put_Line(Item => “Hello .NET world!”); end Hello_Dotnet;
Subscribe to:
Posts (Atom)