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
[code]class A [color=AA77FF]int[/color] i [b]=[/b] [color=FFFF77]0[/color] construct[b]([/b][color=AA77FF]int[/color] value[b])[/b] i [b]=[/b] value [color=999999][i]// -->[/i][/color] integer array A_i function construct_A[b]([/b]integer value[b])[/b] returns integer let id [b]=[/b] new_A[b]([/b][b])[/b] A_i[b][[/b]id[b]][/b] [b]=[/b] value [/code]
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
class A int i = 0 construct(int value) i = value // --> integer array A_i function construct_A(integer value) returns integer let id = new_A() A_i[id] = value