Quote:Original post by jpetrie
EDIT: Nevermind.
That's some ugly code. The use of char* for strings in C++ is, as you mentioned, particularly nasty. The most obvious think I see is that you need to qualify objects in the std namespace (std::cout) or insert a "using std::cout" or "using namespace std" near the top someplace. Unless stocks.h has it... but that would be evil as well.
Use std::string unless your teacher/professor has explicitly forbid it (or explicitly required char*... in which case change the return type of GetMonth() to const char* at least).
Yeah...I really had this one messed up, which is why I'm not even gonna attempt to get it done in time for tommorow. I was just wondering why all the errors were happening in this header file, and why I "confused" my compiler to the point that it "bailed" on me.