Boolean to String and combining boolalpha with a method instead of having to type it seperately when printing
<pre><code>#include &lt;iostream&gt;
#include &lt;cmath&gt;
#include &lt;string&gt;
using namespace std;

string STRING;

     bool isEqual(double a, double b)
    {
        return  fabs(a-b) ==0;
    }

int main()
{
   STRING = isEqual(3,3); &lt;--------HERE'S THE MAIN PROBLEM

cout &lt;&lt; STRING;


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

<p>I'm having trouble setting the output I get from a boolean, be it "true" or "1" equal to a String.Also is it possible to use boolalpha and combine it with "isEqual()" 
so I can just type </p>

<pre><code>cout &lt;&lt;isEqual(3,3) and it gives me "true" 
instead of having to type "cout &lt;&lt; boolalpha&lt;&lt;isEqual(3,3) everytime".
</code></pre>
