Exemplo n.º 1
0
void testAt(IntVector& test)
{
	cout << "First position" << endl;
	cout << test.at(0) << endl << endl;
	cout << "Last position" << endl;
	cout << test.at(test.size() - 1) << endl << endl;
	cout << "Front position" << endl;
	cout << test.front() << endl << endl;
	cout << "Back position" << endl;
	cout << test.back() << endl << endl;
	
	cout << "First pos changed to last pos" << endl;
	test.at(0) = test.back();
	testValues(test);
}