0
Reinterpret cast error .please give me solution
Sir there is an error in this statement While(infile.eof() ) { If(infile.read(reinterpret_cast<char*>(this),sizeof(*this)) >0) { If(strcmp (pf, profession) == 0 ) { Showlist(); Flag =1; P++; Return; } } } The error is in ">" operator. " no operator matches '>' these operands " Please give me solution
1 Réponse
+ 1
You need to put the > inside if the paranthesis. Like this: if(infile.read(reinterpret_cast<char*>(this) > 0)