{"type":"rich","blog_url":"https://bate.hatenadiary.jp/","author_name":"bate","author_url":"https://blog.hatena.ne.jp/bate/","provider_name":"Hatena Blog","title":"operator*","image_url":null,"categories":["\u72ec\u308a\u8a00","code"],"blog_title":"bate's blog","height":"190","provider_url":"https://hatena.blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbate.hatenadiary.jp%2Fentry%2F20080709%2F1215592874\" title=\"operator* - bate&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u4e57\u7b97\u6f14\u7b97\u5b50\u3092\u8ffd\u52a0 Friction.h\u306b\u3042\u308b\u5206\u6570\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30af\u30e9\u30b9\u306b\u4e0b\u8a18\u3092\u8ffd\u52a0\u3002 TFriction<T> operator*( TFriction<T> t ) { this->Exec(); t.Exec(); TFriction<T> temp( t.GetNumerator()*this->m_numerator, // \u5206\u5b50 t.GetDenominator()*this->m_denominator ); // \u5206\u6bcd temp = temp.reduction(); return temp; } main.cpp // main.cpp #include \"Friction.h\"\u2026","url":"https://bate.hatenadiary.jp/entry/20080709/1215592874","published":"2008-07-09 17:41:14","width":"100%"}