home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_12 / 763.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-13  |  742KB  |  2550x3300
Labels: book | reckoner | sky
OCR: Libraries 763 equals v1 for each example Cisplaying vector after the for each: size front back() Disp aying vector v1 after pop back operat .ons Vector ic empty This program consists of the function main) and five other functions The pro- gram consists of instantiating STI vector objects with integer contents and SIS iterators and applying some of the STL algorithms to them The function displ lay displays the contents of a vector<int> pie some of its properties on standard out- put. The function reverseIt() displays the contents of a vector<i int> on stan- dard output in reverse order. The function copyex demonstrates the STL algorithm copy {} . It first copies the contents of its first vector<i nt> parameter to its second vector<int> parameter in reverse order and compares the two vector< ...