blob: 4833e70ac2d78265e7d324be1bfdce7b110e10dc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <iostream>
#include "shopping-cart.h"
using namespace std;
int
main ()
{
ShoppingCart cart;
cart.add_to_cart ("foo");
cart.add_to_cart ("foo");
cart.add_to_cart ("bar");
cart.remove_from_cart ("baz");
cout << cart.count ("foo") << ' '
<< cart.count ("bar") << ' '
<< cart.count ("baz") << endl;
cart.check_out ();
}
|