Horje
vector int initialize with increasing numbers Code Example
vector int initialize with increasing numbers
#include <iostream> 
#include <vector> 
#include <numeric>
using namespace std;
int main()
{
    vector<int> v(10); 
    iota (begin(v), end(v), 0); 
    for (auto i : v) {
        cout << i << ' ';
    } cout << endl;
    return 0;
}




Cpp

Related
41.00 Code Example 41.00 Code Example
find with hash set Code Example find with hash set Code Example
check if number is positive or negative in cpp Code Example check if number is positive or negative in cpp Code Example
ds1307 rtc set time Code Example ds1307 rtc set time Code Example
C++ cout iostream Code Example C++ cout iostream Code Example

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