Re: [Cpp-Programming] Read position issue within an IOSTREAM class
I couldn't copy the error. I believe that the problem is due to an error in the way I implemented the code. In the compiler, the cached information is copied to a temporary instance of a class acting as a wrapper to the iostream class. Then this instance is pushed onto the previous instance of the class as a cross pointer. The following is the code I use to perform this function:
----------------------
void CSource_Attach (CSource* I)
{
I->PrevC=CurIn;
CurIn=I;
}
{
I->PrevC=CurIn;
CurIn=I;
}
----------------------
CSource is the wrapper class; I is the instance to push, and PrevC is a member pointer to the previous instance of the class. Am I doing something wrong?
BTW, I tokenize the keywords and types upon reading, but the writing of these appears to work.
On Wednesday, August 7, 2013 11:07:59 AM UTC-4, Harry Potter wrote:
--The code is pretty complex. I will try to water it down.
You received this message because you are subscribed to the Google Groups "C++ Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cpp-programming+unsubscribe@googlegroups.com.
To post to this group, send email to cpp-programming@googlegroups.com.
Visit this group at http://groups.google.com/group/cpp-programming.
For more options, visit https://groups.google.com/groups/opt_out.