#ifndef CONTAINER_H
#define CONTAINER_H
#include "item.h"
#include<iostream>
usingnamespace std;
template<class T>
class Container
{
private:
void RemoveIndex(T id);
T items[100];
T counter;
T num; /////// the number of items in the array.
public:
void add_item(T New); /// Item New
void size();
void show();
T remove(T id); // int id
Container(); ////// constructor
};
#endif
#include "auto.h"
#include "item.h"
#include "container.h"
int main()
{
Container c;
// quick test for Item class I wrote, delete once you
// get how it works
Item i( 1000, "White bread", 0.99 );
Item y( 1993, "Dozen Eggs", 2.50 );
Item x( 2013, "cookies" , 3.00 );
c.add_item(i);
c.add_item(y);
c.add_item(x);
c.show();
c.remove(1993);
c.show();
// you'll use Auto in part 2, here's a quick example as well
/*
Auto a( 34, "Toyota", "Sienna", 2010 );
cout << a.toString() << endl;
*/
system("pause");
return 0;
}