11.07.2015 Views

tYSR20

tYSR20

tYSR20

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

356Part V: Optional Features}return array[nReadIndex++];protected:int nSize;int nWriteIndex;int nReadIndex;T* array;};// exercise two vectors, one of integers and another of namesvoid intFn();void nameFn();int main(int argc, char* pArgs[]){intFn();nameFn();}system(“PAUSE”);return 0;// Integers - manipulate a collection of integersvoid intFn(){// create a vectorTemplateVector integers(10);// add values to the vectorcout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!