Hello world
You are here :

Sub nodes

Recent changes
Site plan
 
This page is not available in requested lang, reverting to default lang
 

The HelloWorld class

As our project will contain only one class, there is no need to use a package. Here's the class content :

 import net.nosica.io.Console;
 class HelloWorld {
   static public sub main(const string[] args)
   {
     Console.out << "Hello world !\n";
   }
 }

Compiling the example

In a command prompt, type :

 $>nosicacc HelloWorld

This will generate a file source.c, a Makefile, an obj file and the executable HelloWorld.

Launching the example :

 $>./HelloWorld
 Hello world !
 $>
Propulsed by Wiclear