|
-
April 24th, 2003, 03:44 AM
#1
how to use operator [][]
Hallo everyBUDDY
maybe it's a repost, but I didn't find it here. I made vectors and matrices classes and to access single cell I used () operator. the problem was how to use a [] operator to index 2 dimensional array like matrix[1][5]. I made it like matrix(1,5) which is neither elegant nor widely used. It could confuse in the future. Does anybody have an idea how to trick one argument and twice used operator [] ?
thans a lot 
sincerelly carnaz
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|