title: IplImage Open Image in openCV c++
body: <p>I have images saved as 1.jpg, 2.jpg and 3.jpg in a folder(at C:/images/result/template/)</p>
  
  <p>I am attempting to load all the images as follow:</p>
  
  <pre><code>string link="C:/images/result/template/";
  int i=1;
  while (i&lt;4)
  {
  link=link+i+".jpg";
  IplImage* templat  = cvLoadImage(link, 1);
  IplImage* templat2 = cvCreateImage(cvSize(templat-&gt;width, templat-&gt;height), 
  IPL_DEPTH_8U, 1);
  i++
  }
  </code></pre>
  
  <p>However I am getting error.  </p>
  
  <p>error C2678: binary '+' : no operator found which takes a left-hand operand of type   'std::string' (or there is no acceptable conversion)</p>