Nevermind I got it working. I had to put the quadSqRt into and absolute value function because sometimes it was giving me quadSqRt = 0 ans some times quadSqRt = -0 for some reason.
Type: Posts; User: Mhesseltine
Nevermind I got it working. I had to put the quadSqRt into and absolute value function because sometimes it was giving me quadSqRt = 0 ans some times quadSqRt = -0 for some reason.
Thanks I messed around with is some more and got it almost working right. It does what it is supposed to for most inputs but is wrong on a few for some reason I can't figure out. So far some of the...
I'm trying to write a program that prompts the user to enter the coefficients of a quadratic equation ax^2 + bx + c. This is what I have written so far. The program compiles and runs, but after...
Haha never mind I put ' if ( name == mitch) ' not ' if ( name == "mitch" ) '. So it's working now. Thanks!
I tried that but it wouldn't compile and now it says " no match for 'operator==' in 'name == mitch' " , and " no match for 'operator==' in 'name == alex' ". Do I maybe have to set mitch = to a...
#include <iostream>
using namespace std;
int main()
{
char mitch;
char alex;