Forum: C++ Jun 1st, 2005 |
| Replies: 28 Views: 43,795 Ok so i mistyped. Just make it this and it will work (i think)
sizeof(*names)/sizeof(string)
Happy?
P.S. btw i know to pass the length of a dynamic array or to use vector but im just... |
Forum: C++ Jun 1st, 2005 |
| Replies: 28 Views: 43,795 The easiest way to get the length of a dynamic array is this
sizeof(array)/sizeof(arraytype)
where array is your dynamic array and arraytype is the data type (for instance int)
Hope... |