Skip to content
Home
Post Code
Jass (Warcraft III)
Wurst
GUI (Warcraft III)
Galaxy (StarCraft II)
GUI (StarCraft II)
C++
Java
Delphi
Text
Search Code
Compare Code
Uploads
Draw
Create New Drawing
View Drawings
Graph
Log in
<pre class="jasscode">#include <stdio<span class="style_symbol">.</span>h> #include <stdlib<span class="style_symbol">.</span>h> #include <stdint<span class="style_symbol">.</span>h> typedef struct Point <span class="style_comment">{</span> <span class="style_comment"> int64_t x;</span> <span class="style_comment"> int64_t y;</span> <span class="style_comment">}</span> Point; Point foo(Point p) <span class="style_comment">{</span> <span class="style_comment"> return (Point) {.x = p.x+1, .y = p.y+1}</span>; } int main() <span class="style_comment">{</span> <span class="style_comment"> int64_t x = 5;</span> <span class="style_comment"> Point point[20];</span> <span class="style_comment"> point[4] = (Point) {.x = 5, .y = 6}</span>; point<span class="style_symbol">[</span><span class="style_int">5</span><span class="style_symbol">]</span> <span class="style_symbol">=</span> foo(point<span class="style_symbol">[</span><span class="style_int">4</span><span class="style_symbol">]</span>); printf(<span class="style_string">"Hello World %d\n"</span><span class="style_symbol">,</span> x); return <span class="style_int">0</span>; } </pre>
select language
jass
java
> delphi
C++
php
GSL
galaxy
visualBasic
wurst
Text
Markdown
select style
default
bbcode - default
Jasscraft
> jasscraft html
visual
lightweight
lightweightNr
goto line:
Compare with:
text copy window
edit this code
post new code
#include <stdio.h> #include <stdlib.h> #include <stdint.h> typedef struct Point { int64_t x; int64_t y; } Point; Point foo(Point p) { return (Point) {.x = p.x+1, .y = p.y+1}; } int main() { int64_t x = 5; Point point[20]; point[4] = (Point) {.x = 5, .y = 6}; point[5] = foo(point[4]); printf("Hello World %d\n", x); return 0; }