Horje
print vector Code Example
cpp print vector
for(int i = 0; i < vec.size(); i++)
    std::cout << vec[i] << ' ';
print vector
#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 << ' ';
    }
}
print vector of vector c++
for (int i = 0; i < vec.size(); i++)
{
    for (int j = 0; j < vec[i].size(); j++)
    {
        cout << vec[i][j];
    }
}
print vector c++
std::vector<char> path;
// ...
for (char i: path)
    std::cout << i << ' ';
c how to printf a vector
int i;
const int N = 10;
int vett[N];

for(i = 0; i < N; i ++)
	printf("\n%d",vett[i]);




Cpp

Related
How to make two dimensional string in c++ Code Example How to make two dimensional string in c++ Code Example
C++ Converting Kelvin to Fahrenheit Code Example C++ Converting Kelvin to Fahrenheit Code Example
qstring insert character Code Example qstring insert character Code Example
how to convert a string to a double c++ Code Example how to convert a string to a double c++ Code Example
how to print numbers with only 2 digits after decimal point in c++ Code Example how to print numbers with only 2 digits after decimal point in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8