question on string iterators
<p>I have following code</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;algorithm&gt;

using namespace std;

int main(){
  string d="georgia is nice country":
  string::iterator my;
  for (my=d.begin();my!=d.end();my++) {
    cout&lt;&lt;*my&lt;&lt;endl;
  }
  return 0;
}
</code></pre>

<p>but it causes a compiler error saying "my is undefined". What is wrong?</p>
