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
#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;
}
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; }