C++ examples for STL:vector
Declare an empty vector that can hold char objects.
#include <iostream> #include <vector> using namespace std; void show(const char *msg, vector<char> vect); int main() {//from w w w.j a v a 2 s .com // Declare an empty vector that can hold char objects. vector<char> v; return 0; }