Assuming you need an int vector:
vector%26lt;int%26gt; createVector(int size)
{
vector%26lt;int%26gt; *vect;
for(int i = 0; i %26lt; size; ++i)
{
vect = new vector%26lt;int%26gt;();
}
return *vect;
}
Don't forget to delete it when finished.
curse of the golden flower
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment