* Phillip Hellewell [Sun, 27 May 2007 at 22:18 -0600]
<quote>
> 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 ... ??!!Yay! I got a WTF! Von Fugal
signature.asc
Description: Digital signature
-------------------- 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
