I know how to display data in a rectangular form using two for loops and using length attribute in arrays.
But I don't know how do I get the [0][0] th element empty. (I've represented the space like this " ")
I put NULL and tried but it didn't work.
It depends on the data type. If the array is of primitive ints, say, you'd have to use a zero (0), not a null. If it's an array of objects, you can use null. But that won't necessarily display the way you want.
In order to get a space you'd need to either use a datatype that allowed spaces (like strings), or do a conversion during the display process (like null-to-space). I'm sure there are other solutions too.
Arosha Perera
Greenhorn
Joined: Jan 17, 2010
Posts: 4
posted
0
ummm, I don't understand.
I am new to this language actually. Here's what i have been going through..
This is how I have learned, is there a way to put a empty space on [0][0] th?
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.