I have a problem.
i have a performance problem in my code.
the code:
class Document
{
private:
FILE *pdb;
public:
Document ( cosnt char *filename) { pdb = fopen(filename, "t");}
Document (FIKE *f = NULL) : pdb(f){}
~Document() {fclose(pdbpdb);}
};
void assign (document & d)
{
Document temp ("letter.doc");
d= temp;
}
int main()
{
Document doc;
assign (doc);
return 0;
}
}
I can't understand what is the problem.
thanks
Last edited on