Search Results

Showing results 1 to 2 of 2
Search took 0.01 seconds.
Search: Posts Made By: Becuzz
Forum: C++ Jun 1st, 2005
Replies: 28
Views: 42,719
Posted By Becuzz
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: 42,719
Posted By Becuzz
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...
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC