• How do I create a proper header file for my c++ homework?
    2 replies, posted
ISSUE RESOLVED! ^.^ (Passing streams by reference was the problem)
I didn't read everything, but so far I noticed that in hw1.h you use std::string, std::istream and std::ostream without including the appropriate header-files. And iirc you should declare the functions explicitly with external linkage. And if you still should encounter problems, be so kind to post the exact error-message the compiler outputs; this'll make it easier to know where the problem is ;) [editline]7th February 2011[/editline] Also I think streams are non-copyable, so you must pass them by reference.
Thank you so much! I included the proper header-files (which I had tried before but still had errors) and passed the streams by reference.
Sorry, you need to Log In to post a reply to this thread.