#include #include #include using namespace std; void ShowStrings(vector & all) { int num = all.size(); for (int cnt = 0;cnt < num; cnt++) { cout << "|" << all[cnt] << "|" << endl; } return; } int main () { vector plates(5); plates[0] = "ERT 654"; plates[1] = "WER 111"; plates[2] = "UIO 123"; plates[3] = "ASD 444"; plates[4] = "WER 222"; ShowStrings(plates); for (int count = 0; count < 3; count++) { string newPlate; cout << "Enter the plate number" << flush; cin >> newPlate; plates.push_back(newPlate); } cout << " All: " << endl; ShowStrings(plates); return 0; }