Im having trouble writing a console application to create a simple program to solve a math equation for superannuation
<p>could some one help me with this?
ive racked my head over an hour and i cant seem to get it to work
this is in C++ and ive been learning for a little bit but im still new...</p>

<pre><code>int main()
{
 double rate, amount,time, S;

    cout &lt;&lt; "Insert the time of the super: ";
    cin &gt;&gt; time;

    cout &lt;&lt; "Insert the rate (as a decimal, eg 1% AKA 101% = 1.01): ";
    cin &gt;&gt; rate;

    cout &lt;&lt; "Insert the amount $: ";
    cin &gt;&gt; amount;

    S =("amount * (rate ^ time - 1)", pow(rate,time));
    cin &gt;&gt; S;

    cout &lt;&lt; "The total amount is: " &lt;&lt; "S /(rate - 1)" &lt;&lt; endl;

    system("PAUSE");
    return 0;
}
</code></pre>

<p>i dont get a compile error but i can never get an answer from it</p>
