Category:Ayrch: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 21:
 
==Language==
<big>This example is a '''hello world''' using the Upp namespace.</big>&nbsp;
 
<lang Cpp>
Line 49:
</pre>
 
<big>'''A+B B-A'''</big> &nbsp;
 
<lang Cpp>
#include <Core/Core.h>
#include <stdio.h>
#include <iostream>
 
using namespace Upp;
 
CONSOLE_APP_MAIN
{
int a, b;
a = 2, b = 7;
printf("%d + %d = %d\n\n",a,b, a + b);
std::cout << b << " - " << a << " = " << b - a << std::endl;
std::cout << std::endl;
const Vector<String>& cmdline = CommandLine();
for(int i = 0; i < cmdline.GetCount(); i++) {
}
}
</lang>
 
{{out}}
 
<pre>
2 + 7 = 9
 
7 - 2 = 5
 
<--- Finished in (0:00.07), exitcode: 0 --->
</pre>