Thread
:
get length of a dynamic array
View Single Post
•
•
Join Date: Sep 2004
Posts: 7,540
Reputation:
Solved Threads: 704
Narue
Offline
Code Goddess
Re: get length of a dynamic array
0
#
2
Jan 19th, 2005
>Can't seem to figure this out.
You're not the only one. There isn't a portable way to get the size of a dynamically allocated array. You need to pass the size to your function:
Help with Code Tags
C++ Syntax
(
Toggle Plain Text
)
void
addNodes
(
string names
[
]
,
size_t
size
)
void addNodes(string names[], size_t size)
I'm here to prove you wrong.
Narue
View Public Profile
Visit Narue's homepage!
Find all posts by Narue