0

Hello,

I am writting a code for class and I am having a hard time inserting my variables into my "cout". I know how to do it the long way but I know it has to be easier.

Right know this is the portions I am working on:

```
void displaySlpInt (double m, double b)
{
cout << (("y = %f x - %f)\n"), m, b) << endl;
}
```

I have already solved for the values m and b in an earlier function but when I run this function it only gives me the "b" value.

Both m and b are set to double and I have included: iostream,iomanip,string and while I know it is frowned upon I do have "using namespace std." Any guidence is appreciated, thanks in advance!