I use empty to assume that i don't know howmany items stored in the arrays[cr. Kinjal Dixit]
相关问题
- Multiple sockets for clients to connect to
- Is shmid returned by shmget() unique across proces
- What is the best way to do a search in a large fil
- How to get the maximum of more than 2 numbers in V
- Faster loop: foreach vs some (performance of jsper
You are accessing your array out-of-bounds.
eg
You have to index your array with positive integers less than the size of that dimension.
Perhaps you wanted something like this: