<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>stringのメンバ関数find(),rfind()は文字列を検索するもの。 find()は指定した文字列が最初にあらわれたインデックス位置を返し、rfind()は逆に最後にあらわれた位置を返す。 そして、指定した文字列が見つからない時には npos を返す。 #include &lt;iostream&gt; #include &lt;string&gt; using namespace std; int main() { string str1(&quot;This is a test. This is a test2.&quot;); int i = str1.find(&quot;test&quot;); cout &lt;&lt; i &lt;&lt; endl; i …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20090501%2F1241188257&quot; title=&quot;stringのfind,rfind - ゲームが作れるようになるまでがんばる日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-05-01 23:30:57</published>
  <title>stringのfind,rfind</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20090501/1241188257</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
