{"author_name":"winebarrel","width":"100%","blog_title":"so what","version":"1.0","title":" vector\u3092\u914d\u5217\u306b\u3057\u3066\u307f\u308b","height":"190","categories":["C++"],"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fso-wh.at%2Fentry%2F20080529%2Fp3\" title=\" vector\u3092\u914d\u5217\u306b\u3057\u3066\u307f\u308b - so what\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"#include <iostream> #include <vector> using namespace std; void puts_array(int *p, int len) { for (int i = 0; i < len; i++) { cout << p[i] << endl; } } int main() { vector<int> v; for (int i = 0; i < 10; i++) { v.push_back(i); } puts_array(&v[0], v.size()); return 0; } 0 1 2 3 4 5 6 7 8 9","type":"rich","published":"2008-05-29 00:00:00","image_url":null,"provider_name":"Hatena Blog","blog_url":"https://so-wh.at/","url":"https://so-wh.at/entry/20080529/p3","author_url":"https://blog.hatena.ne.jp/winebarrel/"}