{"provider_url":"https://hatena.blog","version":"1.0","image_url":null,"description":"#include <vector> #include <iostream> using namespace std; int main() { float data[] = {1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0}; // \u4f8b\u3048\u3070\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3067 float* \u304c\u6e21\u3055\u308c\u308b\u3068\u3059\u308b // \u97f3\u58f0\u306a\u306e\u3067\u9577\u3055\u304c\u308f\u304b\u3063\u3066\u3044\u308b(\u3053\u3053\u3067\u306f10) float* p = data; int length = 10; // vecData\u306b\u683c\u7d0d\u3057\u305f\u3044 vector<float> vecData; // assign! vecData.assign(p, p \u2026","height":"190","type":"rich","width":"100%","provider_name":"Hatena Blog","categories":["C++","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmactkg.hateblo.jp%2Fentry%2F2016%2F08%2F22%2F034442\" title=\"float* =&gt; vector&lt;float&gt; - \u534a\u7a7a\u6d1e\u7537\u5973\u95a2\u4fc2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/mactkg/","published":"2016-08-22 03:44:42","title":"float* => vector<float>","url":"https://mactkg.hateblo.jp/entry/2016/08/22/034442","blog_title":"\u534a\u7a7a\u6d1e\u7537\u5973\u95a2\u4fc2","author_name":"mactkg","blog_url":"https://mactkg.hateblo.jp/"}