Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multi-dim arrays in c



 On 08/31/2008 12:53 PM, Ruben Safir wrote: 
> On Sun, Aug 31, 2008 at 12:40:45AM -0400, Derek Martin wrote: 
>   
>> On Sat, Aug 30, 2008 at 08:24:06AM -0400, Jerry Feldman wrote: 
>>     
>>> This is one case where C++ has an advantage in that you can create a 
>>> 2 dimensional array class with the x and y dimensions as a private 
>>> member. 
>>>       
>> As it happens, the whole time I was writing my example, I was thinking 
>> that my methodology was crying out to be implemented as an object, 
>> with the dimensions supplied to the object as properties of the object 
>> [which also makes the function (or in that case, method) calls less 
>> ugly]...  I never got around to learning C++, but had to resist the 
>> temptation to code it as a Python class. :D  [Of course, there's no 
>> need to bother with all that in Python...] 
>>     
> 
> That can be done with a struct as well. 
> 
>   


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org