I am trying to make a hangman game, but i have one error remaining on compilation that i don't understand:
"error C2248: 'std::basic_ios%26lt;_Elem,_Traits%26gt;::basic_io... : cannot access private member declared in class 'std::basic_ios%26lt;_Elem,_Traits%26gt;'" The pointer to the error is not in the code i have written... it appears in the istream
... Please explain the error and how to fix it (detailed but simply)..... Thanks in advance!!
Error help for c++ beginner ... 10 points for the first correct answer!!!?
Would have to see the code in order to tell you how to fix but it the error isn't in iostream its your code. Your code is doing something that iostream isn't expecting it to do and so iostream fails. It sounds like you may be trying to directly access a function or a variable in iostream that is private instead of using the correct function to return the value you need look over your code at what functions/variables your using from iostream are you using those correctly if so then it may be that you forgot the "using namespace std;" after your includes
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment