Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

programs using vectors in c++

#include<iostream>  
#include<vector>  
using namespace std;  
int main()  
{  
vector<string> v1;  
v1.push_back("vectors");  
v1.push_back("are useful");  
for(vector<string>::iterator itr=v1.begin();itr!=v1.end();++itr)  
cout<<*itr;  
return 0;   
}  
 
PREVIOUS NEXT
Tagged: #programs #vectors
ADD COMMENT
Topic
Name
1+1 =