Search:

Type: Posts; User: Mhesseltine

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    1,777

    Nevermind I got it working. I had to put the...

    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.
  2. Replies
    7
    Views
    1,777

    Thanks I messed around with is some more and got...

    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...
  3. Replies
    7
    Views
    1,777

    Program keeps crashing on me

    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...
  4. Haha never mind I put ' if ( name == mitch) ' ...

    Haha never mind I put ' if ( name == mitch) ' not ' if ( name == "mitch" ) '. So it's working now. Thanks!
  5. I tried that but it wouldn't compile and now it...

    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...
  6. How to get a different output when you type in different words.

    #include <iostream>


    using namespace std;


    int main()
    {
    char mitch;
    char alex;
Results 1 to 6 of 6