Your still saving overhead if you are not resizing that is my point, if you like vector, which apparently you love. Then you can use it, but it would be more efficent spacewise to use:
Code:
...
char *mycharptr1 = NULL;
char *mycharptr2 = NULL;
char *mycharptr3 = NULL;
try
{
mycharptr1 = new char[1000];
mycharptr2 = new char[1000];
mycharptr3 = new char[1000];
}
catch(bad_alloc&)
{
cout<<"Unable to alloc memory to mycharptrs"<<endl;
if(mycharptr1)delete mycharptr1;
if(mycharptr2)delete mycharptr1;
if(mycharptr3)delete mycharptr1;
//return or what have you for error reporting.
}
...
Just because something is new and easy doesn't mean it is always the right choice.