Is this possible?
Code:typedef std::vector<vector<Car>> Category; Category groupList; vector<Car> cars; groupList.push_back(cars);
This is a discussion on Storing a vector inside a vector within the C++ Programming forums, part of the General Programming Boards category; Is this possible? Code: typedef std::vector<vector<Car>> Category; Category groupList; vector<Car> cars; groupList.push_back(cars);...
Is this possible?
Code:typedef std::vector<vector<Car>> Category; Category groupList; vector<Car> cars; groupList.push_back(cars);
Yes, but you need to separate the >> by a space so that it is parsed correctly.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law