#include question
Lucas Vogel
lvogel@exponent.com
Tue, 29 Aug 2000 11:38:42 -0700
Rob Wehrli wisely pointed out to me that < and > are < and > in HTML,
which makes sense when you replace all instances of < and > with < and
>.
The code then looks like this:
-------------------------------------------
#include < list >
using std::list;
int main()
{
list < int > first;
list < int > second;
// fill both lists
first.push_back(1);
first.push_back(8); /* first is sorted */
second.push_back(2);
second.push_back(10); /* second is sorted */
/* merge second into first */
first.merge(second);
/* at this point, second is empty and first */
/* contains 4 elements in ascending order */
}
-------------------------------------------
stupid HTML messaging! :)
Lucas