Jul 26, 2012 at 10:12am UTC
Hi there,
Could you please post the compiler errors too?
That would help us identify the problem much more easily.
Thanks!
All the best,
NwN
Jul 26, 2012 at 12:18pm UTC
I think you need to at least put using namespace std;
below all of your includes. Could be wrong about that one.
cin.ignore() is a little strange, what is 10? Oh, just use '\n'
throw
looks odd. Replace that with return 1;
Last edited on Jul 26, 2012 at 12:21pm UTC
Jul 26, 2012 at 4:14pm UTC
Also, "ofstream fout;" needs to be placed before the two preceding lines which access it.
After all this, using MinGW, I still get an error:
cmortgage.cpp:18: error: no matching function for call to `getline(std::istream&, double&)'
I don't know how to resolve that...
Jul 26, 2012 at 11:06pm UTC
Doing what Gorlash said and then erasing getline(cin, p);
solved all compiler problems for me...
I erased it because I didn't understand why you use it