Eric, thank you very much for your advice.
> > (1) With constructor, we can init member vaules.
>
> This can be done in C. Think about the
> fopen/fread/fwrite/fgets/fprintf
> etc functions. Don't they work like this?
Um, how can I do that? With struct, there is no constructor, so I have no
idea to do that...
> > (2) With destructor, we can dispose resources, such as
> memory block which
> > had been allocated with operator new, or malloc(). Of
> course, we can close
> > file, too.
>
> Isn't this what fclose does?
Yes, but I have to all fclose() when I want to close the file. With
destructor file will be automatically close when object is removed.
> > (3) To make member values private, we can check the value
> is valid range.
>
> The user of the above fxxxx function knows nothing of what is
> contained
> in whatever the FILE* pointer points to.
But, we can access struct FILE* directly.
> Have you tried using diff and patch? These two utilities should make
> your life very much easier.
I don't know about both diff and patch. Is this available on Macintosh or
Windoze?
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )