| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Array Problem |
On 27 Dec 98 12:44:00, Jasen was going on about "Array Problem"...
KD> Each of those lines can be re-written as a 'string', in that case
KD> use char array[5][6] = {
KD> "x#xxx",
KD> "x###x",
KD> "xxx#x",
KD> "xo##x",
KD> "xxxxx"};
JB> You can use a 5x5 array here too, you'll just lose the terminating
JB> NULs.
JB> char a[5][5]={"x#xxx","x###x"... etc.
That will only work of you use
char a[5][5]={'x','#','x','x','x', 'x','#','#','#','x'... etc.
instead of strings...
Gerry Danen -- email gdanen{at}bigfoot.com -- ICQ 17897683
--home page: http://www.geceventures.com
--year 2000: http://www.geceventures.com/y2k.htm
1 year and 3 days until January 1, 2000.
--- Maximus 3.01
* Origin: Check CD-ROM offer on home page... (1:17/667.8)SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 634/397 635/506 728 639/252 SEEN-BY: 670/218 @PATH: 17/667 275/1 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.