Skip to content

Instantly share code, notes, and snippets.

@MasazI
Created May 22, 2015 03:58
Show Gist options
  • Save MasazI/9ddceecc4abcd397c417 to your computer and use it in GitHub Desktop.
Save MasazI/9ddceecc4abcd397c417 to your computer and use it in GitHub Desktop.
fill.cpp
//
// fill.cpp
// CplusplusPractice
//
// Created by masai on 2015/05/22.
// Copyright (c) 2015年 masai. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<int> v(10);
fill(v.begin(), v.end(), 3);
for(auto i : v){
cout << i << endl;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment