Searching Multi-Dimensional Array
<p>I've created a multi-dimensional array in C++, but it doesn't return anything when I search it.  Just wondering if I messed something up in the code? Full disclosure:  This was originally a class assignment, but I turned it in 2 weeks ago.  I'm asking for clarification for future programs.</p>

<p>I've put the main body (minus some of the list since it's 1000 entries) below</p>

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

using namespace std;

int main(int argc, char** argv) {

    std::string name;
    std::string age;


    //declare 1000*2 Array     
    std::string array[1000][2] = 
   {
      { "Karen Rose","25"       },
{   "Cora Faison","11"      },
{   "Donna Jones","49"      },
{   "Robert Lowe","31"      },
{   "Patricia Johnston","17"    },
{   "Maryanne Hicks","40"       },
{   "James Mcmurray","53"       },

};

    cout &lt;&lt; "Enter a name to search for " &lt;&lt; endl;
    cin &gt;&gt; name;

    for(int i = 0; i &gt; 1000; i++)
    {
        if(name == array[i][0])
        {
            age = array[i][1];
            cout &lt;&lt; name &lt;&lt; "'s age is" &lt;&lt; age &lt;&lt; endl;
        }
        else
        {
            cout &lt;&lt; "we found nothing" &lt;&lt; endl;
    }

}

 return 0;
}
</code></pre>