Hi,
This is my first post, this site has been very helpful in the past. I am wondering if it is possible to assign a dynamic array to a vector? If so, how? The following code is not working for me (with Visual Studio .NET 2003):
int *current;
current = new int[10];
vector<int> vectorOfInts;
for (int i = 0; i < 10; i++)
{
vectorOfInts.push_back(i);
}
current = vectorOfInts.begin();
for (int i = 0; i < 10; i++)
{
cout << current array, entry: " << i << " is: " << *(current + i);
}