HI.

I would like to resize the array '*data' dynamically. In C it is possible to use realloc, but what would I do in C++?

Thanks.
F.R.
Code:
#include <iostream>
#include "cTest.h"

bool MyFunction (cTest &data)
{
	int i=0;
	// DO SOMETHING
	if (!i)
		return false;
	else true;
}

int main()
{
	int i;
	bool ent=false;
	cTest *data;

	data = new cTest [5];

	for (i=0;i<5;i++)
	{
		ent = MyFunction(data[i]);	
	}

	if (ent)
	{
		for (i=0;i<5;i++)
		{
			//increase the size of data
		}
	}

	return 0;
}