Category:Ayrch: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 21: Line 21:


==Language==
==Language==
<big>This example is a '''hello world''' using the Upp namespace.</big>&nbsp;
This example is a hello world using the Upp namespace.


<lang Cpp>
<lang Cpp>
Line 49: Line 49:
</pre>
</pre>


<big>'''A+B'''</big> &nbsp;
<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>