[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dynamic arrays
From: |
James Marshall |
Subject: |
dynamic arrays |
Date: |
Wed, 20 May 1998 14:21:28 GMT |
Hi everyone,
simple question... if someone can point out where I should be
looking for absolute basics like these I'd be grateful!
I want to create an array of integers at runtime... in C++ I'd do
the following:
int *array, xsize, ysize;
xsize=10;
ysize=10;
array=new int[xsize][ysize];
How do I do this with Swarm and objective C? From my fiddlings it
seems alloc is replaced by create... can you use the create message
with the default types? Apologies for triviality.
James
--
James Marshall - Postgraduate Research Student (MPhil/PhD)
Artificial Intelligence Group - Department of Computer and Information Sciences
De Montfort University - Milton Keynes Campus
Web:- http://www.mk.dmu.ac.uk/~jmarshall/
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
- dynamic arrays,
James Marshall <=