Cheat Sheet > Data_Structures Crib Sheet 3


Rensselaer Polytechnic Institute CSCI 1200 // Initialize   std::vector<type> vec;   //Makes vec. of 10 doubles set to 3.1   std::vector<double> scores(10, 3.1);   //Makes vec. b exact copy of scores.   std::vector<double> b(scores);   vec.empty() //Returns if vec is empty   vec.size() //Returns size of vec   vec.clear() ...[Show More]

Preview 1 out of 4 pages
Purchase this document to unlock the blurred part and the rest of the document

Unlock Now

Reviews( 0 )