#include question

Furmanek, Greg Greg.Furmanek@hit.cendant.com
Tue, 29 Aug 2000 14:20:27 -0400


I am guessing these are some "other" preporcessor 
replacements. lt (less then)
		  gt (greater then)???

#include statement is a preprocessor directive anyway.
I think you should look in preporcessor documentation.

-> -----Original Message-----
-> From: Lucas Vogel [mailto:lvogel@exponent.com]
-> Sent: Tuesday, August 29, 2000 10:18 AM
-> To: Plug-Devel (E-mail)
-> Subject: #include question
-> 
-> 
-> I get a C++ tip of the day email, and I have found a line of 
-> code that I do
-> not understand. Can anyone explain the #include line to me? 
-> The code sample
-> is on merging two lists.
-> 
-> -------------------------------------------
-> #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 */
-> } 
-> -------------------------------------------
-> 
-> thanks
-> 
-> 
-> 
-> -------------------------------------------
-> Lucas Vogel, Software Developer
-> LandWarrior Project
-> Exponent Inc.
-> lvogel@exponent.com
-> phone:	(623)587-6739
-> fax:		(623)587-4187
-> ------------www.exponent.com---------------
-> 
-> _______________________________________________
-> Plug-devel mailing list  -  Plug-devel@lists.PLUG.phoenix.az.us
-> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-devel
->