Using:
vector<string> greeting;
and
string line;
and
greeting.push_back(line);
for example
see Accelerated C++ section 2.5.4 The complete framing program.
Using:
vector<string> greeting;
and
string line;
and
greeting.push_back(line);
for example
see Accelerated C++ section 2.5.4 The complete framing program.