Search
 
SCRIPT & CODE EXAMPLE
 

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;   
}  
Comment

PREVIOUS NEXT
Code Example
Cpp :: string in c++ 
Cpp :: C++ if...else...else if 
Cpp :: what was the piep piper app 
Cpp :: balanced parentheses 
Cpp :: iterate const vector 
Cpp :: store array in vector 
Cpp :: c++ pop string from vector 
Cpp :: c++ custom hash 
Cpp :: Ninja c++ 
Cpp :: c++ string find last number 
Cpp :: C++ rename function 
Cpp :: backtrack 
Cpp :: swap alternate elements in an array c++ problem 
Cpp :: c++ if else example 
Cpp :: how to convert char to int in c++ 
Cpp :: vector iterator in c++ 
Cpp :: if in c++ 
Cpp :: fractional knapsack problem 
Cpp :: cpp language explained 
Cpp :: bubble sort function in c++ 
Cpp :: cpp compare strings 
Cpp :: ifstream file (“code2.txt”); dev C++ 
Cpp :: flipperRSocketResponder.cpp command failed react native 
Cpp :: c++ profiling tools 
Cpp :: c++ round number to 2 decimal places 
Cpp :: c++ fstream read line write ,creat file program 
Cpp :: identity 
Cpp :: c to c++ code converter 
Cpp :: c++ template function in class 
Cpp :: https://stackoverflow.comInstance of a Character in a String c++ 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =