Original Post
Hi, i have seen a few ways to get the number of elements in an array but i couldn't make it work while calling it inside a method of a class. So basicaly i need to be able to know the number of elements inside Webs in this function. Any ideas? (Passing the number of Webs as another parameter is not acceptable). THanks
CWeb::CWeb(std::string data, CWeb *Webs)
{
//Code to add all of the Webs into a linked list inside CWeb
//Webs is a pointer to an array of CWeb type objects
}