Anonymous user
Category:Ayrch: Difference between revisions
no edit summary
No edit summary |
No edit summary |
||
Line 21:
==Language==
<lang Cpp>
Line 49:
</pre>
<big>'''A+B B-A'''</big>
<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>
|