? / professional-program-11-GridTemplateContainer-GridTest.c
include <Grid.h> include <vector> include <deque> include <iostream> using namespace std; int main(int argc, char** argv) { Grid<int, vector<int> > myIntGrid; Grid<int, deque<int> > myIntGrid2; myIntGrid.setElementAt(3, 4, 5); cout << myIntGrid.getElementAt(3, 4); Grid<int, vector<int> > grid2(myIntGrid); grid2 = myIntGrid; // Grid<int, int> test; // WILL NOT COMPILE return (0); }
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.