[SDL] Question about arrays...
SlntHero at aol.com
SlntHero at aol.com
Fri Feb 9 10:59:43 PST 2007
Question about arrays...
Hi,
I have a C++ Class with the following:
Int8 Playfield[3][3];
Later in my program I wish to initialize the above 2 dimensional array with
the following values:
0 / 1 / 0
1 / 1 / 1
0 / 1 / 0
I tried the following, but it does not compile:
Playfield
= { 0, 1, 0,
1, 1, 1,
0, 1, 1 };
Can someone tell me how to do the above correctly?
Thanks in advance!
Jesse
_SLNTHERO at AOL.com_ (mailto:SLNTHERO at AOL.com)
_http://www.SilentHeroProductions.com_ (http://www.SilentHeroProductions.com)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070209/18673d02/attachment.html
More information about the SDL
mailing list