how to read adjacent strings
<p>I am new to programming. Can anyone help me how to do this.
My input file is like this</p>

<blockquote>
  <p>The </p>
  
  <p>dog</p>
  
  <p>is </p>
  
  <p>running</p>
</blockquote>

<p>I need to get output like this</p>

<blockquote>
  <p>The dog</p>
  
  <p>dog is</p>
  
  <p>is running</p>
</blockquote>

<p>that is I have to read adjacent word pairs. How do I do this in C++?</p>
