for(int i = 0; i < vec.size(); i++)
std::cout << vec[i] << ' ';
#include <vector> // vector
#include <iostream> // cout
using namespace std;
int main()
{
vector<int> tmp = {1,2,3,4,5,6};
for (auto i : tmp) {
cout << i << ' ';
}
}
for (int i = 0; i < vec.size(); i++)
{
for (int j = 0; j < vec[i].size(); j++)
{
cout << vec[i][j];
}
}
for (auto i: vector)
std::cout << i << ' ';
std::vector<char> path;
// ...
for (char i: path)
std::cout << i << ' ';
Code Example |
---|
Cpp :: selection sort c++ algorithm |
Cpp :: stl vector |
Cpp :: panic: assignment to entry in nil map |
Cpp :: lua table contains |
Cpp :: image shapes in opencv c++ |
Cpp :: Bresenham line drawing opengl cpp |
Cpp :: check prime cpp gfg |
Cpp :: sort vector of strings |
Cpp :: c++ 14 for sublime windoes build system |
Cpp :: c++ check substring |
Cpp :: find element in vector |
Cpp :: c++ squaroot |
Cpp :: descending order c++ |
Cpp :: convert kelvin to Fahrenheit |
Cpp :: c++ function as paramter |
Cpp :: c++ lettura file |
Cpp :: c++ program to generate all the prime numbers between 1 and n |
Cpp :: cpp auto |
Cpp :: cpp #include "" < |
Cpp :: visual studio getline not working |
Cpp :: unpack tuple c++ |
Cpp :: c++ vector |
Cpp :: selection sort c++ |
Cpp :: one away coding question |
Cpp :: max pooling in c++ |
Cpp :: max c++ |
Cpp :: c++ set intersection |
Cpp :: variadic template in c++ |
Cpp :: has substr c++ |
Cpp :: Start mongodb community server |