Rookie Q: how to set a program to start over and get a new value?
<p>I am working with a program which requires a value to put in a variable and do some stuff on it.  The problem is that I want the program to start over again and ask the user for a new value to process the new value again.  </p>

<p>For example look at this code, which requires a number as a grade to rate it.  When the processing was done I want the program to ask for a new grade ( next student for instance ).</p>

<pre><code>#include &lt;iostream.h&gt;

int main (int argc, const char * argv[])
{
    int n;
    cout&lt;&lt; " Please Enter your grade : " ;
    cin&gt;&gt;n;
    switch (n/10) {
        case 10: cout&lt;&lt; " A+ : Great! ";

        case 9:
            break;
        case 8: cout&lt;&lt; " A : Very Good ";
            break;

        case 7: cout&lt;&lt; " B : Good " ;
            break;
        case 6: 
        case 5:
        case 4:
        case 3:
        case 2:
        case 1:
        case 0: cout&lt;&lt; " Failed ";
            break;

        default:
            break;
    }
    return 0;
}
</code></pre>
