On Fri, May 25, 2007 at 07:49:53PM -0600, Von Fugal wrote:
> Random thought on this dynamic multidimensional array stuff:
> 
> int **new_array(int rows, int cols) {
>   int size = (cols + 1) * rows;
>   int **ary = new int* [size];
>   int **i = ary;
>   while (i < ary + size) {
>     ary[i] = i + 1;
>     i += cols + 1;
>   }
>   return ary;
> }

What in the ... ??!!

-- 
Phillip Hellewell <phillip AT hellewell.homeip.net>
--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to