{"author_url":"https://blog.hatena.ne.jp/wata_d/","categories":["C++","C#"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F2015%2F08%2F25%2F193248\" title=\"\u914d\u5217\u3092\u4efb\u610f\u306e\u5024\u3067\u521d\u671f\u5316(fill)\u3057\u305f\u3044 - \u9591\u53e4\u9ce5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","image_url":null,"height":"190","blog_url":"https://www.little-cuckoo.jp/","url":"https://www.little-cuckoo.jp/entry/2015/08/25/193248","provider_name":"Hatena Blog","published":"2015-08-25 19:32:48","blog_title":"\u9591\u53e4\u9ce5","type":"rich","title":"\u914d\u5217\u3092\u4efb\u610f\u306e\u5024\u3067\u521d\u671f\u5316(fill)\u3057\u305f\u3044","author_name":"wata_d","provider_url":"https://hatena.blog","description":"0\u3067\u521d\u671f\u5316\u3059\u308b\u306a\u3089\u4f55\u306e\u82e6\u52b4\u3082\u306a\u3044\u306e\u3060\u3051\u3069\u30011\u3068\u304b10\u306b\u3057\u305f\u3044\u3063\u3066\u6642\u3002C++\u306a\u3089std::fill\u304c\u3042\u308b\u306e\u3067: int arr[5]; std::fill(arr, arr + _countof(arr), 10); \u3068\u66f8\u3051\u308b\u3002\u3055\u3089\u306bstd::vector\u306b\u306f\u521d\u671f\u5024\u3092\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067\u6307\u5b9a\u3067\u304d\u308b\u304b\u3089: std::vector<int> arr(5/*\u8981\u7d20\u6570*/, 10/*\u5024*/); \u3067\u6e08\u3080\u3002C#\u3060\u3068\u3069\u3061\u3089\u3082\u985e\u4f3c\u6a5f\u80fd\u304c\u306a\u3044\u306e\u3067(\u591a\u5206)\u3001\u3069\u3046\u3057\u3066\u3082\u4e00\u884c\u3067\u66f8\u304f\u306a\u3089\u3053\u3046\u306a\u308b\u306e\u3060\u308d\u3046\u304b: var arr = Enumerable.Range(0, 5).Select(_ => 10).ToArray(); \u2026","width":"100%"}