Cyclone (programming language): Difference between revisions

Content deleted Content added
No edit summary
Examples: start with what?
Tags: Mobile edit Mobile app edit
Line 121:
===Manual memory management===
{{Empty section|date=January 2011}}
 
== Examples ==
The best example to start with is the classic [[Hello world]] program:
<source lang="C">
#include <stdio.h>
#include <core.h>
using Core;
int main(int argc, string_t ? args)
{
if (argc <= 1) {
printf("Usage: hello-cyclone <name>\n");
return 1;
}
printf("Hello from Cyclone, %s\n", args[1]);
return 0;
}
</source>
 
==See also==