// Inventory Displayer
// Demonstrates constant references
#include
<iostream>
#include
<string>
#include
<vector>
using
namespace std;
//parameter vec is a constant reference to a vector of strings
void
display(const vector<string>& vec);
int
main()
{
vector<string> inventory;
inventory.push_back(
"sword");
inventory.push_back(
"armor");
inventory.push_back(
"shield");
display(inventory);
return 0;
}
//parameter vec is a constant reference to a vector of strings
void
display(const vector<string>& vec)
{
cout <<
"Your items:\n";
for (vector<string>::const_iterator iter = vec.begin();
iter !=
vec.end(); ++iter)
{
cout << *iter << endl;
}
}
b+b+b+c+c+c+c =3b+4c
c + c + 2c + c + c = 6c
ya surely
b + b + b + c + c + c + c = 3b + 4c
4c
c + c + c + c + c = 5 * c.
There are no "primary and secondary keys" in c and c plus plus.
One can find information on designing an inventory database by trying the following softwares: Inventoria, iMagic Inventory, Inventory Power, Inventory Tracker Plus, Inventory Organiser Deluxe, Small Business Inventory Control, Stock It Easy, to name a few.
a. inventory
3c
There is no such thing as 'unix C++'.
They do exist in C and C++.