1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Need Help With C++

  1. Mar 1, 2004 #1
    I am having a problem with my homework assignment. It gets an illegal operator error and I don't know why. I've been in my teacher's office 3 times and sent numerous emails, but I still can't get it. Now, he's gone, and I have until midnight to turn it in for 10% off. I just want to know why it crashes on add, sub, and mult.

    http://www.ceetus.com/program2.zip [Broken]
    Last edited by a moderator: May 1, 2017
  2. jcsd
  3. Mar 1, 2004 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    I looked at the polynomial::mult() method because it was the simplest. I don't see anything completely egregiously wrong, and I don't have the time to compile it. Can you tell us more about where it crashes? Can you run a debugger, or at least use some cout << statements to pinpoint what's failing?

    - Warren
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook