How to write c++ functions by returning parameters?
<p>Need help in figuring out how to write function and returning parameters. Wrote the question below and answer from solution manual, not sure how to write the function though very confused :( </p>

<p>Here's what I've tried:</p>

<pre><code>#include &lt;iostream&gt; 
using namespace std; 
char Answer; 

void max(); 

void main () { 
    int max(int num1, int num2) { 
        if (num1 &gt; num2) 
            return num1; 
        else 
            return num2; 
    } 

    print(); 
    system("pause"); 
}
</code></pre>
