Jump to content

Array Initialization: Difference between revisions

(initializing array type variables in autohotkey)
Line 55:
AutoHotkey does not have arrays yet.
However, variables can be set to arbitrary size and pointer operations can be used, simulating arrays. Just without the syntactic sugar of '[]'.
Initialization is as follows:
<lang AutoHotkey>
size = 1000
Line 60 ⟶ 61:
VarSetCapacity(arrayVar, size, value)
</lang>
 
=={{header|C++}}==
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.