{"published":"2016-10-06 00:00:00","provider_url":"https://hatena.blog","description":"#include <iostream> using namespace std; typedef struct { int a; int b; int getA(){ return a; } int getB(){ return b; } } hoge_t; int main() { hoge_t aa = {}; aa.a = 123; cout << aa.getA() << endl; // 123 cout << aa.getB() << endl; // 0 return 0; }","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","url":"https://iww.hateblo.jp/entry/20161006/struct","title":" \u69cb\u9020\u4f53\u306b\u95a2\u6570\u3092\u66f8\u304f","provider_name":"Hatena Blog","image_url":null,"height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20161006%2Fstruct\" title=\" \u69cb\u9020\u4f53\u306b\u95a2\u6570\u3092\u66f8\u304f - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" 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/iww/","author_name":"iww","categories":["C++"],"blog_url":"https://iww.hateblo.jp/","type":"rich","version":"1.0","width":"100%"}