WS> first... matrix[3][30] - 25 was not enough.. and they go 0...2, 0...29
WS> // MAXROW will be how many lines in file
WS> // MAXCOL will be the max line length
WS> #include
WS> #include
WS> #include
WS> const int MAXROW=3,MAXCOL=30;
WS> char matrix[MAXROW][MAXCOL];
Something I've run across just recently and except in a few cases I've seen
it as the NORM ie:Your example above. Whats missing ? MINROW, MINCOL.. Reason
I mention this is there's no way to check for a minimum ie: something goes
kaflooey somewhere else in the program, and sends out 0 or a negative number,
and the bug only surfaces every 1 million times the program is run...
I know why bother... If you need an example, I do have one. it's nothing more
than a loop, but it has no error checking for a minimum, and so when it adds
1 to 127 for a char variable, the loop starts all over again at 0. Also why
waste 24 bits on MAXROW, MAXCOL when a char will do ?
* AmyBW v2.14 *
--- GEcho 1.00
---------------
* Origin: Static Line C= Support 407-633-6855 (1:374/128)
|