C/C++ vector December 24, 2011 void fnc() { vector nameV; nameV.push_back("ab"); nameV.push_back("cd"); int sz = nameV.size(); cout<< " Size of Vector:" << sz << endl; for(int i=0;i { cout<< nameV[i] << endl; } } Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment